Tagged: 

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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.

    #742723

    Hey 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,
    Rikard

    #743267

    Hello 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!

    #744825

    ?

    #745438

    Hi,

    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,
    Nikko

    #750545

    Hello 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, 9 months ago by Stadsherberg.
    #752354

    Hi,

    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,
    Andy

    #755194

    Hi 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,

    #755260

    Hi,

    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,
    Andy

    #756310

    sorry still no luck, if i provide you an login to my website can you then fix it?

    #757176

    Hi,

    did you make sure with Google that the font name is correct? if yes then provide us admin access.

    Best regards,
    Andy

    #757714

    Yes i did, but i really dont know how to fix it. Website + Login in Private Content

    #757715

    Thx already!

    #757955

    Hi,

    is your server using any caching?

    Does adding another Google font work for you? please let us know about your results.

    Best regards,
    Andy

    #759964

    Yeah 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!

    #760136

    Hi,

    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

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