Tagged: child theme, enfold, functions.php, wp-admin
-
AuthorPosts
-
July 29, 2014 at 10:07 pm #297431
Hello,
I set up a child theme and everything seemed to be working properly…until I logged out. I am unable to log back in when the Child Theme is activated. Login just won’t accept my password.Here is what I have in the functions.php file for the Child Theme:
<?php/*
*Enfold Child Theme Functions File
*/add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Alegreya SC’] = ‘Alegreya SC’;
$fonts[‘Alegreya’] = ‘Alegreya’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Alegreya SC’] = ‘Alegreya SC’;
$fonts[‘Alegreya’] = ‘Alegreya’;
return $fonts;
}Thank you for any help with this.
EisaJuly 30, 2014 at 12:30 pm #297665Hi EisaSawyer!
Thank you for using the theme.
What are the installed plugins on your website? I think it’s possible to ask your host for the correct login details.
Cheers!
IsmaelJuly 30, 2014 at 3:18 pm #297753I apologize, I should have given you more information. If I deactivate the child theme I am able to log in just fine, so it’s not the login details and we have gone through all of the plugins already. It seems that there is something within the child theme that is causing this.
July 30, 2014 at 5:03 pm #297812Hey!
Try to place an empty functions.php file into the child theme folder – just in case your custom php code breaks the login somehow. If this doesn’t help try to deactivate all extensions and check if the login then starts to work. If not try to increase the allocated php memory to 128M: http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
Cheers!
PeterJuly 30, 2014 at 8:20 pm #297898Thanks Dude. So since I mainly just needed more Google fonts, I just decided to add a font plugin and did away with the child theme all together.
Thanks for your input!
Eisa -
AuthorPosts
- The topic ‘Cannot log in to WP-ADMIN after activating Child Theme’ is closed to new replies.
