Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #928439

    Hi, I wanted to use the Google Font, Kaushan Script, for all headings. I am using the Enfold Child theme and tried the following Quick CSS:

    h1.av-special-heading-tag , h2.av-special-heading-tag , h3.av-special-heading-tag {
    font-family:’Kaushan Script’ !important;
    }

    However this didn’t work. Could you please help.

    #928577

    Hey Angeladlh,
    Please try Register Additional Google Fonts for Theme Options
    This would display additional google fonts as options in the General Styling font dropdowns, and you can select the font in Enfold Theme Options > Advanced Styling, were you can assign it to headings.

    Best regards,
    Mike

    #928600

    This comes to your functions.php of your child-theme:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Kaushan Script'] = 'Kaushan Script';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Kaushan Script'] = 'Kaushan Script';
    return $fonts;
    }

    The plus sign in the font should not be here – than it will work

    #928683

    Hi Mike and ‘Guenni007’ thankyou for your prompt responses. If I go to my WP Dashboard and click on Appearance, I do not see the Editor, which would enable me to edit my functions.php file. I am new to WP so I am unsure why this is the case. Please help.

    #928700

    Dashboard – Appearance – Editor ( appearance is a drop down – if you only press Editor – you will open the first point – themes)
    on the right side there will be a list of files / folders
    there is a functions.php ( but be sure you are using a child-theme – even if you will manage to edit the file on parent-theme – changings will be lost on next update)

    on a fresh child theme install there will be only:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */

    and – yes there is no closing tag at the end of that file

    #928708

    Hi,
    Were you able to find the editor with Guenni007 explanation? If not I would ask if you are using a security plugin, some disable this feature. If you include a admin login in the private content area, we can take a closer look.

    Best regards,
    Mike

    #928713

    yes some people have plugins or in wp-config f.e. that line :

    define( 'DISALLOW_FILE_EDIT', true );
    which surpesses the editor

    #928818

    Hi, I am unable to display the Editor. Please see details below. Thankyou.

    #929035

    Hi,
    For the iThemes Security plugin, you will find the setting at: iThemes Security > Settings > WordPress Tweaks > File Editor > Disable File Editor
    2018-03-19_070249
    2018-03-19_070335
    I disabled it for you so your editor will now show.

    Best regards,
    Mike

    #929444

    Hi Mike, thankyou so much for your help! regards, Angela

    #929449

    Hi,
    Glad to help, before we close this I wanted to ensure you were able to get your font working?

    Best regards,
    Mike

    #930200
    This reply has been marked as private.
    #930207

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    and the video tutorials here
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Add Google Font to Enfold Theme’ is closed to new replies.