Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #867893

    Hello,

    I am using special heading set to “Heading Style Classic (centered, italic)” but, rather than using the actual italic weight for the font, it is just slanting the letters in a “faux italics.”

    The first image on this page the special heading: http://capstone-vision.flywheelsites.com/

    This is what the font is supposed to look like in italics: https://fonts.google.com/specimen/Droid+Serif

    Is there a way to actually set this heading to actually be Droid Serif Italic? Thank you!

    #868507

    Hey Kirstie,

    Thank you for using Enfold.

    Please try to add the italic version as a separate font.

    // http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    Best regards,
    Ismael

    #868508

    Hey Kirstie,

    Thank you for using Enfold.

    Please try to add the italic version as a separate font.

    // http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    Best regards,
    Ismael

    #868961

    Thanks for the response. I decided to use Droid Serif because it was already installed with Enfold and I wanted to avoid any custom code for this website. Is there a reason why the italic weight is not already installed? I am having the same problem with bold in Droid Sans. Are all of the fonts that come pre-loaded with Enfold only available in regular weight?

    #869121

    Hi,

    It’s not working because the specific font style or weight is not included in the theme’s Droid Serif font

    Best regards,
    Ismael

    #869226

    Are there any fonts that come installed with Enfold that have the actual italic and bold weights included?

    #869304

    I did decide to add my own fonts to the functions.php. I am not using a child theme, so when the theme updates, will I have to add the code back into the functions.php?

    #869545

    Hi MattJensenMarketing,

    Yes, you will have to put the code there again after every update. I strongly recommend using a child theme.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #871801

    I have set up a child theme, but every time I try to install it, the site shuts down with an “HTTP 500” error.

    The problem is with the functions.php file, because when I upload a blank functions.php, it works. But, in order to get the fonts I want, I need to add them to my functions.php. This is what my functions.php file looks like when I get the error:

    <?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.
    */
    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Merriweather'] = 'Merriweather:400,400i,700,700i';
    $fonts['Merriweather Sans'] = 'Merriweather Sans:300,300i,700,700i';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Merriweather'] = 'Merriweather:400,400i,700,700i';
    $fonts['Merriweather Sans'] = 'Merriweather Sans:300,300i,700,700i';
    return $fonts;
    }

    Do you see anything here that would cause the site to crash? Thank you!

    • This reply was modified 7 years ago by MJM.
    #871991

    Hi,

    I added the code/filter above but I can’t reproduce the error. Is there any existing filter in the theme files?

    Best regards,
    Ismael

    #872294

    I was able to figure out what the problem was. I hadn’t deleted the filter from the parent Enfold file, so they must have been conflicting. Thanks for your help with this! This topic can now be closed.

    #872501

    Hi,

    Great, glad you found the problem and thanks for letting us know. Please open a new thread if you should have any further questions or problems, I’ll go ahead and close this for now.

    Best regards,
    Rikard

    #879807

    This topic can be closed, thanks!

    #880063

    Hi,

    Glad we could help. We’ll close the thread now.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Special Heading Faux Italics’ is closed to new replies.