Child theme: home page blank
-
Ive already asked the theme developer this but have had no response so Im checking here. I am using a theme called AWES over at mojo themes (https://www.mojo-themes.com/item/awes-responsive-wordpress-theme/) and have the theme installed on my dev site here: https://dev.tech4eleven.com/. I want to use a child theme and have worked with child themes many times but this one I cant sort out. When I active my child theme, it’s just blank. Dashboard works fine and all options in the framework are available. I believe its something weird with the parent functions.php. I starts:
/* THEME OPTIONS PANEL -----------------------------------------------------------------------------------*/ /* Set the file path based on whether the Options Framework is in a parent theme or child theme */ if ( get_stylesheet_directory() == get_template_directory() ) { define('OF_FILEPATH', get_template_directory()); define('OF_DIRECTORY', get_template_directory_uri()); } else { define('OF_FILEPATH', get_stylesheet_directory()); define('OF_DIRECTORY', get_stylesheet_directory_uri()); }
I have to reverse it like this:
if ( get_stylesheet_directory() == get_template_directory() ) { define('OF_FILEPATH', get_stylesheet_directory()); define('OF_DIRECTORY', get_stylesheet_directory_uri()); } else { define('OF_FILEPATH', get_template_directory()); define('OF_DIRECTORY', get_template_directory_uri()); }
to get it to not error out. But when I go, it’s blank (note that all I do above is to call “get_stylesheet…” before calling “get_template_directory…” The parent theme has some custom functions in their own directory and I think thats part of the problem too. Having issues calling them in the child theme. Been reading a ton and just cant make sense of it.
I know whoever can help probably needs more information than this and I’m willing to give it. Anyone have any idea?
Thanks.
- The topic ‘Child theme: home page blank’ is closed to new replies.