• Resolved wpjap

    (@wpjap)


    Hi. How do I change the font in menus or in content?
    Maybe someone knows which fonts are being used as standards in Tiny framework?
    Thx!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Tomas Mackevicius

    (@tomasm)

    Please open functions.php in the code editor and search for:

    Tip31 – Support for aditional Google Fonts. Load Google Fonts stylesheet.

    By default TF uses Open Sans from Google fonts.

    Thread Starter wpjap

    (@wpjap)

    To test this I followed Tip31 in functions.php:
    a) pasted line 468 into a page/post (text for testing)
    b) uncommented lines 486-488 (define the font for loading)
    That worked.
    Trying to do that in my child theme did not work:
    a) placed lines 486-488 from the original functions.php to my child functions.php, right behind the first functions block (see here for my child functions.php)

    I presume it has something to do with “enqueuing” the fonts …?!
    If I get this fixed, the next question will probably be: how can I de-queue the theme-standard Open Sans font, also by way of the child theme.

    Maybe someone has an idea for both questions?
    Thanks!

    Theme Author Tomas Mackevicius

    (@tomasm)

    For child theme, look into functions.php of the child theme example, there you will find info on both how to activate Tip31 and deactivate Tip13.

    Thread Starter wpjap

    (@wpjap)

    Thanks so far.
    I have now used this folder as template for my child theme:
    \wp-content\themes\tiny-framework\inc\examples\tiny-framework-child\
    Then tested font addition:
    Tip13 Remove Open Sans (and other Google Fonts) as default font.
    That seems to be working, although the page still looks the same. Probably because font Verdana looks like Google’s Open Sans, right? Verdana is being used says the Firefox inspector.
    Then enabled a different Google font (Tip 31) :

    
    if ( !is_admin() ) { // If we do not want this to load in the admin dashboard
    wp_register_style( 'tinyframeworkchild-fonts', 'https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i', '', '', 'screen' ); 
    }
    

    Unfortunately: Verdana is still being used (says Firefox inspector, and my eyes)

    Hmmm? What am I missing?
    Thanks for helping!

    Theme Author Tomas Mackevicius

    (@tomasm)

    Well, of course, you just included the font, now you have to go to style.css and change Open Sans to Lora as main font.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Fonts (in Menu or Content)’ is closed to new replies.