Tagged: wpml
-
AuthorPosts
-
April 13, 2015 at 1:22 pm #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,
ThomasApril 13, 2015 at 1:43 pm #427476isn’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, 7 months ago by Guenni007.
April 14, 2015 at 12:51 pm #428170Hey!
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,
IsmaelApril 14, 2015 at 1:03 pm #428180i thougt he did not copy the whole quick css rules to the other language.
Sorry my fault if i misunderstood the problemApril 14, 2015 at 3:41 pm #428275Hey!
@@Guenni007 No worries at all. Thanks for helping as usual :)
Best regards,
YigitApril 14, 2015 at 7:34 pm #428414Hi,
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;
}April 15, 2015 at 6:41 am #428703Hi!
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,
IsmaelApril 23, 2015 at 2:16 pm #433476Thanks for this solution!
But, I don’t know why, it doesn’t work.
The same problem.
The page loads open sans again.
Best regards,
ThomasApril 24, 2015 at 7:23 am #433903Hi!
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,
IsmaelApril 27, 2015 at 6:15 pm #435483Hi,
yes I did.Would it help to get you an access to the site?
Regards,
ThomasApril 29, 2015 at 10:13 am #436560Hey!
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!
IsmaelMay 5, 2015 at 3:13 pm #439747This reply has been marked as private.May 7, 2015 at 4:52 am #440735Hi!
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,
IsmaelMay 7, 2015 at 2:33 pm #440947Hi,
thank you!
The english version is gone now. What happened wrong?
Best regards,
ThomasMay 9, 2015 at 5:31 am #441872Hi!
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,
IsmaelMay 9, 2015 at 8:10 am #441911Hi 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 CondensedBoth 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,
ThomasMay 11, 2015 at 5:54 pm #442592Hi!
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,
AndyJuly 20, 2015 at 7:13 am #475581Hi 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,
ThomasJuly 21, 2015 at 11:56 am #476401Hey!
try to use this code in Quick CSS field:
h3.av-special-heading-tag { font-family: 'Roboto+Condensed'; }
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.