• So, I was using the Twenty Fourteen theme … but I wanted to customize it. So, I created a child theme.

    • twentyfourteen/
    • twentyfourteen-child/

    I setup the twentyfourteen-child/style.css to be… (note: this is the ONLY file in the child directory)

    /*
    Theme Name: Twenty Fourteen Child
    Template: twentyfourteen
    Description: Child theme for modifying twenty fourteen
    
    @import url("../twentyfourteen/style.css");
    
    */
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    .single .post-thumbnail img {
            display: none;
    }
    /*hides featured image in single post view*/
    
    .search .post-thumbnail img {
            display: none;
    }
    /*hides featured image in search result view*/
    
    .category .post-thumbnail img {
            display: none;
    }
    /*hides featured image in category view*/

    Now, I went into my dashboard. I saw that my Twenty Fourteen theme was activated. So, I ACTIVATED the new child theme (it was listed there, so I know the path was correct, and the parent directory was correct). When I went to view my site, all I saw was a bare-minimum site with NO styles. It was like the site ignored the entire parent theme templates, and just threw up the content with no styles. It’s as if it was ONLY using the child theme, and not referring to the parent theme at all.

    Does anyone know where I went wrong??? Please help. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you have the folders for both parent and child themes in separate folders within the themes folder (check via ftp)

    Maybe a link to your site?

    woops… just noticed this.

    change your style theme so it reads like this (cut and paste)

    /*
    Theme Name: Twenty Fourteen Child
    Template: twentyfourteen
    Description: Child theme for modifying twenty fourteen
    */
    @import url("../twentyfourteen/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    .single .post-thumbnail img {
            display: none;
    }
    /*hides featured image in single post view*/
    
    .search .post-thumbnail img {
            display: none;
    }
    /*hides featured image in search result view*/
    
    .category .post-thumbnail img {
            display: none;
    }
    /*hides featured image in category view*/
    Thread Starter jabbamonkey

    (@jabbamonkey)

    Ah, got it. Got to watch those comment tags. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme not using parent theme template’ is closed to new replies.