Tagged: font
-
AuthorPosts
-
February 3, 2017 at 11:42 am #742340
Hello,
First of all thx for the great theme!
Is it possible to change the heading text to Maven Pro? Right now i have it as Body text but i want it also as heading text.
Thx!
Ps. sorry for the bad english.
February 4, 2017 at 9:14 am #742723Hey Stadsherberg,
Did you add the font as a header? http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
If you should need any further help then please post admin login details in private so that we can access the backend of your installation.
Best regards,
RikardFebruary 6, 2017 at 11:21 am #743267Hello Rikard!
Thx for your response.
I have added the code to my functions.php but it only add’s ‘PT Sans’. What do i have to change in the code to add the Maven Pro Font.
I tried this, but then my websited crashed :( (Already fixed it)add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Maven Pro’] = ‘Maven Pro:400,700′;
$fonts[‘Maven Pro’] = ‘Maven Pro:400,700,400italic,700italic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Maven Pro’] = ‘Maren Pro:400,700,400italic,700italic’;
$fonts[‘Maven Pro’] = ‘Maven Pro:400,700′;
return $fonts;
}Thx already!
February 9, 2017 at 2:51 pm #744825February 10, 2017 at 3:11 pm #745438Hi,
Can you let us know what error it showed when you used the code? please try to add this code at the bottom of functions.php of your child theme:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['New Maven Pro'] = 'Maven+Pro:400,700,400italic,700italic'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['New Maven Pro'] = 'Maven+Pro:400,700,400italic,700italic'; return $fonts; }
Please copy the code from the forum and also make sure that the ‘ (apostrophe doesn’t change, sometimes it causes the problem especially when copied from email). Also Maven Pro is already in the body text, that’s why I renamed it to New Maven Pro, you may not include this one:
add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['New Maven Pro'] = 'Maven+Pro:400,700,400italic,700italic'; return $fonts; }
Hope this helps.
Best regards,
NikkoFebruary 22, 2017 at 4:50 pm #750545Hello Nikko,
Thanks for you response.
Sorry but it dindt work, down here you see a image. The font in the red box i want to change to “Maven Pro” like in the blue box.
https://www.dropbox.com/s/549qartc7cjxmcn/Uitleg-01.png?dl=0
Is there something i did wrong? Hope you can help.
Thx!
- This reply was modified 7 years, 10 months ago by Stadsherberg.
February 27, 2017 at 4:53 pm #752354Hi,
this code will take care for the heading font:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['New Maven Pro'] = 'Maven+Pro:400,700,400italic,700italic'; return $fonts; }
Check exactly what’s the Google Font’s name, to make sure that “New Maven Pro” is correct.
Best regards,
AndyMarch 3, 2017 at 5:06 pm #755194Hi Andy,
thx for your response.
Sorry, but i still dont get it working.
If i put the codes beneath the last line in the enfold-functions.php there happens nothing. Is there an other possible way to do this? Can i upload the font with FTP or something?
Hope you can help.
Thx,
March 3, 2017 at 6:39 pm #755260Hi,
enfold-functions.php is the wrong place, use functions.php instead. Again, make sure the font name is the correct one and check that on Google.
Best regards,
AndyMarch 6, 2017 at 11:38 am #756310sorry still no luck, if i provide you an login to my website can you then fix it?
March 7, 2017 at 6:36 pm #757176Hi,
did you make sure with Google that the font name is correct? if yes then provide us admin access.
Best regards,
AndyMarch 8, 2017 at 11:53 am #757714Yes i did, but i really dont know how to fix it. Website + Login in Private Content
March 8, 2017 at 11:53 am #757715Thx already!
March 8, 2017 at 5:55 pm #757955Hi,
is your server using any caching?
Does adding another Google font work for you? please let us know about your results.
Best regards,
AndyMarch 13, 2017 at 1:00 pm #759964Yeah i guess. What do i have to do with the cache?
No it wont work, tryed chaning my functions.php even added the “WP Google Font” Plugin but it wont work. In my last post i provided you my login. Can you please look at it?
Thx already!
March 13, 2017 at 5:49 pm #760136Hi,
if any kind of caching on your server is activated then changes won’t be visible. Does it work for you when trying another Google font? Please contact your host and tell them to deactivate any caching.
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.