Google Fonts v1.1

Release Notes

  • fixed the problem caused by a space in the font name
  • optimised the link to google
  • Changed the way the 'header height' setting works

Please test and give feedback. Thanks :)

  • everything seems to be working fine : )

  • Works great, nice fix! ... even works with my 3rd party theme. This sould be a standard part of every ELGG site!

    Recommended! ... Umby

  • Could not get it to work on Kestrel theme. I moved it below them theme and every way I could with noo luck.

  • @Badbo    It does work -  it does exactly what it's supposed to do.  

    However, the google fonts plugin isn't totally compatible with the Kestral theme.  Eg. the header font won't change because the Kestral theme has custom css there, also the title text on the pages is marked up differently than in the default Elgg theme.  A little bit of css editing would fix it.  

    btw... The default body font in the google fonts plugin is very similar to the one in the Kestral theme.  Try choosing a really fancy font as the body text and you will see the change more clearly.  That bit works fine.

  • Thanks, I will give css a try and see what happens. I am not very good at css, but it is local and I can make changes on the fly, or put them back in a second. I will find it and see what I can do and report back in case it will help someone else.

    Thanks Bo

  • I had a quick try on my own elgg test site and ended up with this:

    (place the code at the bottom of this file: "mod/google-fonts/views/default/google-fonts/css.php")

    h1 {   
        font-size: <?php echo $gf_headfont_size; ?>;
        line-height: 1.4em;
        font-family: "<?php echo $gf_bodyfont; ?>","Lucida Grande",Arial,Tahoma,Verdana,sans-serif;
        }
       
    #kestrel-topbar-logo {
        font-size: <?php echo $gf_headfont_size; ?>;
        line-height: 1.4em;
        color: <?php echo $gf_headfont_color; ?>;
        font-style: <?php echo $gf_headfont_style; ?>;
        font-family: "<?php echo $gf_headfont; ?>",Georgia,times,serif;
        //text-shadow: 1px 2px 4px #333;
        text-decoration: none;
        width: 230px;
        text-align: left;
        margin-top : -15px;
    }   

    #kestrel-topbar-logo:hover{
        font-size: <?php echo $gf_headfont_size; ?>;
        line-height: 1.4em;
        color: <?php echo $gf_headfont_color; ?>;
        font-style: <?php echo $gf_headfont_style; ?>;
        font-family: "<?php echo $gf_headfont; ?>",Georgia,times,serif;
        //text-shadow: 1px 2px 4px #333;
        text-decoration: none;
        width: 230px;
        text-align: left;
        margin-top : -15px;
    }   

    .elgg-search .search-input {
      width: 90%;
    }

  • really nice, makes a bit difference in look and works well with easytheme

  • Can't get this to work at all with Elggzone Darkgray. Seems to do something with the default theme

  • If you're not seeing the title font change try changing 'italic' to 'normal' - Option 3 in the settings.

    You need to check the settings on the Google fonts website for your chosen font and make sure you match them in the plugin settings.

  • Unfortunately it doesn't work for me (Elgg 2.2.2):

     

    This plugin is invalid: Its manifest contains an invalid dependency type "elgg_version"

  • I've uploaded the correct files now, please download 'release 1.2' and try again.

Stats

  • Category: Themes
  • License: GNU General Public License (GPL) version 2
  • Updated: 2018-1-10
  • Downloads: 2009
  • Recommendations: 6

Other Projects

View juBo's plugins