
-
AuthorPosts
-
June 17, 2015 at 2:09 pm #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,
JurJune 17, 2015 at 2:18 pm #460780Hi 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,
YigitJune 17, 2015 at 3:33 pm #460839Hi 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,
JurJune 17, 2015 at 3:41 pm #460843Hey!
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!
YigitJune 17, 2015 at 3:58 pm #460848Sure, but how do I create a temporary admin login?
June 17, 2015 at 4:07 pm #460853Hey!
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,
YigitJune 17, 2015 at 4:13 pm #460858This reply has been marked as private.June 17, 2015 at 4:21 pm #460861June 17, 2015 at 4:27 pm #460862This reply has been marked as private.June 18, 2015 at 12:28 pm #461225Hi!
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,
IsmaelJune 18, 2015 at 1:42 pm #461277This reply has been marked as private.June 19, 2015 at 6:02 am #461680Hey!
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!
RikardJune 19, 2015 at 8:35 am #461732This reply has been marked as private.June 20, 2015 at 9:58 am #462173Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.