• Hi, I have tried, unsuccessfully to get a functional child theme made up. Right now I have a modified parent theme, but I would like to separate my changes into a child theme, however this does not seem to be possible.

    I know it is supposed to work, however I have tested known good basic child theme examples for twenty fourteen, which produced the same results. One blank white screen with no HTML. It is not like a missing stylesheet, no PHP files are loading and no HTML is rendered at all. There is no html in the source.

    Here is my child theme contents:

    style.css

    /*
     Theme Name:     twentyfourteen Child Theme
     Theme URI:      https://hyperlinkcode.com/blog/?p=996
     Description:    A bare-bones child theme for use with twentyfourteen Theme from <a href="https://www.ads-software.com/">Wordpress</a>. To use this Child Theme, you must have <a href="https://www.ads-software.com/themes/twentyfourteen/">twentyfourteen</a> parent theme installed.
     Author:         Edward Zivkovic
     Author URI:     https://hyperlinkcode.com/
     Template:       twentyfourteen
     Version:        1.0.0
    */
    
    /* Add Custom CSS after this line */
    
    /* Demo Johnson Box code courtesy of: https://hyperlinkcode.com/blog/html-johnson-box/ */
    
    .johnson1 {
    	padding: 20px;
    	background: #ffff99;
    	width: 90%;
    	margin: 20px auto;
    }
    .johnson6 {
    	padding: 20px;
    	background: #ffff99;
    	width: 90%;
    	margin: 20px auto;
    	border: 3px dashed #ee0000;
    }
    .johnson8 {
    	padding: 20px;
    	background: #ccffcc;
    	width: 90%;
    	margin: 20px auto;
    	border-left: 5px solid #ff8080;
    }
    
    /* Other Sample Code */
    
    .warning {
    	color: red;
    }
    .shadow {
    	box-shadow: 0 8px 8px -6px #333;
    }

    functions.php

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }

    It is my understanding(from the official wordpress docs) that the only required files are functions.php and style.css?

    File hierarchy image

    I know this is a thousandth repeat post, and it should be stupid simple, I just don’t seem to be hitting that lofty mark… haha. Help appreciated immensely!

    The website in question

Viewing 5 replies - 1 through 5 (of 5 total)
  • Your file structure looks correct and your code works without issue when I tried it on my local WP install. Can you temporarily enable debugging by putting:

    define( 'WP_DEBUG', true );

    in wp-config.php and see if any errors appear?

    Thread Starter jpurdy647

    (@jpurdy647)

    Just enabled it.

    Not positive where output goes, checked GoDaddy error log, nothing there. Found an error log in the root folder with wp-config.

    Output here(23:44 is my last attempt at loading the page)

    [04-May-2016 21:14:25 UTC] PHP Warning:  Missing argument 2 for TM_validate_membership() in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 220
    [06-May-2016 22:27:03 UTC] PHP Warning:  Missing argument 2 for TM_validate_membership() in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 220
    [13-May-2016 23:45:52 UTC] PHP Warning:  Missing argument 2 for TM_validate_membership() in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 220
    [16-May-2016 19:32:28 UTC] PHP Warning:  Missing argument 2 for TM_validate_membership() in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 220
    [16-May-2016 23:36:56 UTC] PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /home/trishmurray143/public_html/testD002/wp-includes/functions.php on line 3792
    [16-May-2016 23:36:56 UTC] PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /home/trishmurray143/public_html/testD002/wp-includes/functions.php on line 3792
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:56 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:36:57 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:21 UTC] PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /home/trishmurray143/public_html/testD002/wp-includes/functions.php on line 3792
    [16-May-2016 23:40:21 UTC] PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /home/trishmurray143/public_html/testD002/wp-includes/functions.php on line 3792
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:40:22 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:32 UTC] PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /home/trishmurray143/public_html/testD002/wp-includes/functions.php on line 3792
    [16-May-2016 23:44:32 UTC] PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /home/trishmurray143/public_html/testD002/wp-includes/functions.php on line 3792
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87
    [16-May-2016 23:44:33 UTC] PHP Deprecated:  Function split() is deprecated in /home/trishmurray143/public_html/testD002/wp-content/plugins/TM Code/TM Code.php on line 87

    I deactivated all plugins(including TM-code) to no avail, those were all warnings though, no errors.

    Thanks for the quick response.

    Thread Starter jpurdy647

    (@jpurdy647)

    What else could make a child theme not work?

    Thread Starter jpurdy647

    (@jpurdy647)

    Bump, any assistance here is incredibly appreciated

    I can’t think of any other troubleshooting steps that might work. You were able to temporarily disable all plugins; does that mean you have Dashboard access? Are you able to switch to another theme to see if it works correctly? Have you asked your hosting providers if there were any outages?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Known good child themes do not work on my site?’ is closed to new replies.