Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #460775

    Hi,
    I tried to add an extra google font to enfold (Roboto slab) using you’re tutorial: adding this to the functions php (changed the font name offcourse):

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    return $fonts;
    }

    And now I can’t acces my dashboard anymore! What happened?
    url: http://www.testa-ocean-foundation.org/
    I really need to work on it now so I hope this can be solved?

    regards,
    Jur

    #460780

    Hi Jur!

    Please undo the changes you made on functions.php file via FTP. File is located in wp-content/themes/enfold/ folder. And yes, private content is only visible to moderators and to you.

    Regards,
    Yigit

    #460839

    Hi Yigit.
    I edited the functions.php file and everything seems back to normal, but now I wonder how to add the roboto slab font to the fontlist. And how I can use different font weights, since this doesn’t work?

    regards,
    Jur

    #460843

    Hey!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it? You can check “Set as private reply (Only you and moderators will see the content of this post)” to set your post to private.

    Cheers!
    Yigit

    #460848

    Sure, but how do I create a temporary admin login?

    #460853

    Hey!

    Please go to Users > Add New and create a new user with Administrator user role. You can use (Email address hidden if logged out) as email address but please post login credentials here privately so any available moderator can look into it.

    Regards,
    Yigit

    #460858
    This reply has been marked as private.
    #460861

    Hi!

    No you set it while creating the user :)

    Best regards,
    Yigit

    #460862
    This reply has been marked as private.
    #461225

    Hi!

    The password is incorrect. Please check. Try to edit functions.php, go to line 17 then below that line, add this code:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Slab'] = 'Roboto+Slab:400,700,300,100';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Google fonts']['Roboto Slab'] = 'Roboto+Slab:400,700,300,100';
    return $fonts;
    }

    Please copy this directly from the forum, not from your email.

    Regards,
    Ismael

    #461277
    This reply has been marked as private.
    #461680

    Hey!

    You can use any email really, all we need it a user/pass to access the site. The email is only important if one forgets the password and needs to reset it.

    Cheers!
    Rikard

    #461732
    This reply has been marked as private.
    #462173

    Hey!

    One way to remove the border is to wrap the content following the grid row on a color section, i’ve done that now.

    Cheers!
    Josue

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