Tagged: 

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #427466

    Hi,

    on this page there is a problem with the english version and the fonts in the custom .css file.

    English version:
    Do you know why the fonts of the custom .css file are not loaded?

    Best regards,
    Thomas

    #427476

    isn’t it so, that this is not a bug but a feature.
    Each language has its own custom.css and i guess all Enfold Options are too language specific.
    On my Dashboard you can see at the left Enfold Child (DE) and if i turn to EN this will change too.

    This is indeed a nice feature because you can give the translation a new look. You can even change e.g. the logo position. Or the logo itself.
    etc. pp.

    • This reply was modified 9 years, 8 months ago by Guenni007.
    #428170

    Hey!

    Thank you for using Enfold.


    @Guenni007
    : Thank you for helping out!


    @Ink_Eye
    : Can you please elaborate the issue? Did you add a custom font in the custom.css file? How did you add it? If possible, please provide a screenshot of the elements or text with the custom font issue.

    Regards,
    Ismael

    #428180

    i thougt he did not copy the whole quick css rules to the other language.
    Sorry my fault if i misunderstood the problem

    #428275

    Hey!

    @@Guenni007 No worries at all. Thanks for helping as usual :)

    Best regards,
    Yigit

    #428414

    Hi,

    thank you guys for your help!

    The custom .css looks like this:

    /* Have fun adding your style here :) – PS: At all times this file should contain a comment or a rule, otherwise opera might act buggy :( */
    /* General Custom CSS */

    @import url(http://fonts.googleapis.com/css?family=Pathway+Gothic+One);
    @import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700);

    .avia-menu, h1, h2, h3, h4, h5{
    font-family: ‘Roboto Condensed’, sans-serif;
    font-weight:400;
    }
    body{
    font-family: ‘Pathway Gothic One’, sans-serif;
    font-size:20px;
    line-height:1.35em;
    }

    #428703

    Hi!

    Please remove it then use this filter to add new google fonts: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    Edit functions.php, look for this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Pathway Gothic One'] = 'Pathway Gothic One';
    $fonts['Roboto Condensed'] = 'Roboto Condensed:400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Pathway Gothic One'] = 'Pathway Gothic One';
    $fonts['Roboto Condensed'] = 'Roboto Condensed:400,700';
    return $fonts;
    }

    You can now select the fonts on Enfold > General Styling > Fonts panel.

    Regards,
    Ismael

    #433476

    Thanks for this solution!

    But, I don’t know why, it doesn’t work.

    The same problem.

    The page loads open sans again.

    Best regards,
    Thomas

    #433903

    Hi!

    It works on our installation. Make sure that you place the code below line 16 on functions.php. Did you select the fonts in Enfold > General Styling fonts panel?

    Regards,
    Ismael

    #435483

    Hi,
    yes I did.

    Would it help to get you an access to the site?

    Regards,
    Thomas

    #436560

    Hey!

    Yes, please. Post the login details here as a private reply. Check the code, make sure that all symbols, apostrophe etc are not converted to character codes.

    Cheers!
    Ismael

    #439747
    This reply has been marked as private.
    #440735

    Hi!

    Please check the page now: http://hotel-residence-loren.ch/

    This is the font script: http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700%7CPathway+Gothic+One

    Best regards,
    Ismael

    #440947

    Hi,

    thank you!

    The english version is gone now. What happened wrong?

    Best regards,
    Thomas

    #441872

    Hi!

    I didn’t do anything in the language settings. What do you mean it is “gone”? I checked the Enfold(EN) > Theme Options but it’s not configured properly: http://hotel-residence-loren.ch/wp-admin/admin.php?page=avia

    Best regards,
    Ismael

    #441911

    Hi Ismael,

    thank you for your help! I have configured it now.

    I have set the body font: Pathway Gothic One
    and the heading font: Roboto Condensed

    Both are not working. I don’t know why.
    Screenshot
    firebug says it’s the right font, but it isn’t. It is the Helvetica.

    What can I do?

    Best regards,
    Thomas

    #442592

    Hi!

    maybe it’s just a caching problem, so please clear browser cache. Do you use any caching plugin? or maybe your server is using some kind of caching, in this case please contact your host about that.

    Regards,
    Andy

    #475581

    Hi Andy,

    unfortunately they say, that there is no server cache, they can clear.

    I do not use any caching plugin.
    It looks on any devices the same. So I thinks, it’s not the browser cache of my computer.

    I do not know what I can do to solve this.

    Regards,
    Thomas

    #476401

    Hey!

    try to use this code in Quick CSS field:

    h3.av-special-heading-tag {
    font-family: 'Roboto+Condensed';
    }
    

    Regards,
    Andy

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.