-
AuthorPosts
-
October 22, 2015 at 5:41 pm #523167
Hi,
I want to use open sans for the heeding and body tex font. However, there was a problem with the non-latin char set. And with the help of Dude in the page below I have used the code in the page below.
https://kriesi.at/support/topic/google-fotns-with-extended-latin-subset/
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Open Sans’] = ‘Open Sans:400,600&subset=latin,latin-ext’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Open Sans’] = ‘Open Sans:400,600&subset=latin,latin-ext’;
return $fonts;
}However, now I cannot use the font. I choose and save in general styling Fonts section. However, the system automatically chooses default for heading font and Arial for body text font by itself even after open sans has been chosen and saved. I don’t know why. Enfold refuses to use it.
Is it possible that this is happing because of the SSL setup or do you have any other possible root problem for this issue?
Awaiting Your Reply
Best RegardsOctober 23, 2015 at 1:40 pm #523780Hey ilkbaharkunduzu!
can you provide us admin access so we can take a deeper look into it? post login details here as private reply.
Deactivate all your plugins, clear browser cache and hard refresh a few times. Let us know if this helps you or not.Best regards,
AndyOctober 23, 2015 at 2:39 pm #523853Hi,
Thank you for the response Andy. Created an admin user profile.
This site is live. Even If you deactivate the tab manager, all the products will be naked in terms of structure. I do not want to try that option because I am not a developer and cannot handle if any problem occurs.
However, I tried something else. I deleted the codes below in function php after “global $avia_config” line I have added like 1 week before. And I have chosen open sans for heading and body text then I saved. When I view a page I have seen the typical open sans with of course its non-latin character problem. Without the code, this problem does not arise but the core problem ( non-latin char issue ) is still there. I guess your system refuses to save open sans fonts if we add the codes below in function.php. In summary, when I delete the code below, your system chooses the fonts but with non-latin char problem. May be there is a need to change the code a little. I don’t know. You are the experts. I have just diagnosed and I am not sure that I did right.
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Open Sans’] = ‘Open Sans:400,600&subset=latin,latin-ext’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Open Sans’] = ‘Open Sans:400,600&subset=latin,latin-ext’;
return $fonts;
}Best Regards
October 25, 2015 at 7:13 am #524334Hey!
Please remove the modification then refresh the dashboard. Reselect the Open Sans font in the General Styling > Fonts panel. Add this in the functions.php file to fix subset characters.
function add_subset_func($fontlist) { $fontlist .= "&subset=latin,latin-ext"; return $fontlist; } add_filter('avf_google_fontlist', 'add_subset_func');
Regards,
IsmaelOctober 25, 2015 at 7:18 am #524336Hi İsmael,
Where will I add the code? Under “global $avia_config;” line? The same as before?
Thanks
October 25, 2015 at 9:23 am #524353Ismael,
Added the code and there seems to be no problem. Thank you.
You may close the thread.
Best Regards
- This reply was modified 9 years, 2 months ago by ilkbaharkunduzu.
October 25, 2015 at 11:50 pm #524579Hey!
Glad you got it shorted!
Please let us know if we could do anything else for you.Cheers!
BasilisOctober 27, 2015 at 6:10 pm #525707Thank you,
There seems no problem. I opened a new thread because I want the issue to be relevant to the title. You can close the thread.
Best Regards
- This reply was modified 9 years, 1 month ago by ilkbaharkunduzu.
October 28, 2015 at 11:36 am #526007 -
AuthorPosts
- The topic ‘Enfold automatically changes the fonts for heading and body text.’ is closed to new replies.