-
AuthorPosts
-
July 5, 2017 at 6:59 pm #816864
I use google font’s “Heebo” font.
I chose it in the theme options.
Thing is every time I update the theme, the font resets to “default” or “Arial”.
Hope you’ll check it so it will stop in the next update.July 6, 2017 at 6:40 am #817059Hey barak97,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardJuly 6, 2017 at 4:17 pm #817325See private content.
July 7, 2017 at 5:13 am #817594Hi,
Thanks for that, I changed the font to Heebo and saved and it looks to be sticking. Is this only happening when updating the theme or does it happen when you change something in the theme options as well?
Best regards,
RikardJuly 7, 2017 at 9:56 am #817696If I notice right, only when updating the theme.
July 7, 2017 at 11:35 am #817761Hi,
Ok, thanks for the feedback. I think it will be hard to debug the issue if it only happens on updates unfortunately. Are you ok with checking that setting each time you update? We haven’t had anyone else report such a problem so I think it might be something local to your installation.
Best regards,
RikardJuly 7, 2017 at 1:36 pm #817816I guess I won’t have another option… Weird that it is only in my site, but Ok. Thank you!
July 8, 2017 at 5:53 am #818068Hi,
Sorry but it would be very difficult for us to find the problem unfortunately, if we even could. We’ll keep the thread open in case it should happen on the next update as well, or maybe you will have some more clues as to why it’s happening.
Best regards,
RikardJuly 20, 2017 at 4:37 pm #824677I think I found it!
The font settings resets everytime I clean cache with “WP ROCKET” plugin.July 21, 2017 at 6:02 am #824981Hi,
Ok, not sure why that would be but glad you found the problem anyway :-)
Best regards,
RikardOctober 5, 2017 at 12:30 pm #860563Now I come across a worse problem… The font settings seems to not be saved at all.
After choosing the font and hitting “save all changes”, I click on the theme settings on the sidebar, go to “General styling” page and it’s like I didn’t change anything at all – goes back to “Default” and “Arial”.Is there a way to disable this option? Override it?
Even when using a google font plugin it doesn’t override the theme settings.
Any help?October 9, 2017 at 8:16 am #861775Hi,
The login credentials are not working. Please check it carefully. Is it working properly if the cache plugin is disabled?
Best regards,
IsmaelOctober 20, 2017 at 11:17 am #866670Updated login credentials are in the private content.
I tried to check it when cache is disabled, and the problem still occurs.
But when I chose another fonts from the list in the “fonts” segment under “General Styling” – the setting was saved correctly. So it seems like there is a specific problem with the Heebo font.
It was added to the list via a code that I inserted to the function.php file after I read instructions in this forum. This is the code:add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Heebo'] = 'Heebo:400,500,700&subset=hebrew'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Heebo'] = 'Heebo:400,500,700&subset=hebrew'; return $fonts; }
- This reply was modified 7 years, 1 month ago by barak97.
October 21, 2017 at 5:50 am #866963Hi,
The “heebo” font is already included in the heading font selection so you don’t need to add the “avf_google_heading_font” filter. Please replace the filter with the following code.
add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Google fonts']['Heebo'] = 'Heebo:400,500,700&subset=hebrew'; return $fonts; }
Re-select the font in the “Defines the Font for your body text” settings under “Google fonts”.
Best regards,
IsmaelOctober 21, 2017 at 11:48 am #867008It did work for the Heading font – the setting stayed after refreshing the page.
Unfortunately, it didn’t work for the Body font which resets itself to Arial :(October 22, 2017 at 5:31 pm #867227Hi barak97,
Can you give the user above the admin rights, please?
Best regards,
VictoriaOctober 22, 2017 at 5:34 pm #867228Yes, it has now.
October 22, 2017 at 9:38 pm #867337Hi barak97,
Thanks. You can set the font for the h1-h6 headings. I set it and it shows on the website.
Best regards,
VictoriaOctober 22, 2017 at 10:29 pm #867361Yes, but I want the Body font to be in Heebo too… :)
October 24, 2017 at 4:38 am #867951Hi,
Looks like the frontend body font is already set to “Heebo” even if it’s not set in the backend. If not, please add this filter which enables you to use a specific font without using the theme options.
add_action('init', 'ava_google_font'); function ava_google_font() { global $avia; $avia->options['avia']['google_webfont'] = 'Heebo:100,400,700'; return $avia; }
Best regards,
IsmaelOctober 24, 2017 at 3:43 pm #868245Great! It worked. Thank you
October 24, 2017 at 4:23 pm #868259Hi,
Glad that Ismael helped you. Let us know if you need more assistance or if we can close the thread :)
Best regards,
NikkoOctober 28, 2017 at 10:34 am #869831@Ismael , After testing on a few devices, it seems like the code doesn’t bypass the font settings in the theme settings…
Even though it is in the functions.php file, I see Arial as the body font… :(October 28, 2017 at 12:55 pm #869878Hi barak97,
When is it happening? Specific devices or browsers?
Best regards,
VictoriaOctober 28, 2017 at 1:05 pm #869885In chrome for desktop, chrome mobile on android, safari on iphone 5…
Seems like the filter doesn’t really work.October 28, 2017 at 4:39 pm #869961Hi,
Did you try the following hook?
add_action('init', 'ava_google_font'); function ava_google_font() { global $avia; $avia->options['avia']['google_webfont'] = 'Heebo:300,400,700&subset=hebrew'; return $avia; }
Best regards,
IsmaelOctober 28, 2017 at 5:22 pm #869972@Ismael
Yeah, it’s inside the functions.php file, but seems like it doesn’t have any effect…October 30, 2017 at 7:03 am #870363Hi,
The “Heebo” font is loaded twice, that’s why it’s not working. We set the “body” font to “Arial” and the “heading” font to “Heebo”. Please specify the body font manually in the Quick CSS field.
body { font-family: 'Heebo', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.