• 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m sorry but we do not support commercial themes here as you paid for support when you bought the theme.

    Thread Starter Tech4Eleven

    (@tech4eleven)

    Understood but surely someone’s got an idea on whats going on with the above code, right? Figured someones come across it and can help me out.

    Sorry. The www.ads-software.com support forums are meant for the core application, themes and plugins that are distributed on www.ads-software.com.

    Thread Starter Tech4Eleven

    (@tech4eleven)

    ok. you can delete this post then.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child theme: home page blank’ is closed to new replies.