Support » Fixing WordPress » Child Theme problems.

  • Resolved stuartist1

    (@stuartist1)


    Hello, I truly have followed so so many instructions on how to sort this problem from this forum and online. Nothing works. The same question that has been asked many times. Where is my child theme? All that shows in my themes is:-
    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description
    ChildTheme Stylesheet is missing.

    I do not understand as the style sheet does show to have been added to wp-content-themes-ChildTheme-stylecss.
    I have created the theme using the following:-
    /*
    theme Name: twenty thirteen child
    theme URI: http://stuartist.com/twentythirteen/
    description: twenty thirteen child theme
    author: me
    author uri: http://stuartist.com
    Template: twentythirteen
    Version: 1.0.0
    */
    @import url(“../twentythirteen/style.css”);
    /* =Theme customization starts here
    ————————————————————– */
    I am using Twenty Thirteen 3.9, my FTP is Filezilla and the site is stuartist.com
    Please, any help would be much appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What’s the name of your Child Theme folder?

    Thread Starter stuartist1

    (@stuartist1)

    ChildTheme and within that is stylecss which is where I have put the document childcss.txt. I know they look odd names, sorry.

    The stylesheet needs to be named exactly “style.css” and sit at the base of the child theme’s directory in the themes folder.

    You also need this at the top of your child theme stylesheet (this is how WP knows it’s a child theme):

    /*
     Theme Name:   Twenty Fourteen Child
     Theme URI:    http://example.com/twenty-fourteen-child/
     Description:  Twenty Fourteen Child Theme
     Author:       John Doe
     Author URI:   http://example.com
     Template:     twentyfourteen
     Version:      1.0.0
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  twenty-fourteen-child
    */
    /*import parent theme's styles*/
    @import url("../twentyfourteen/style.css");
    
    /* =Theme customization starts here (your styles)
    -------------------------------------------------------------- */

    Thread Starter stuartist1

    (@stuartist1)

    I named it style.css and it appears at the base as you explained. Here’s what is in the stylesheet.
    /*
    theme Name: twenty thirteen child
    theme URI: http://stuartist.com/twentythirteen/
    description: twenty thirteen child theme
    author: me
    author uri: http://stuartist.com
    Template: twentythirteen
    Version: 1.0.0
    */
    @import url(“../twentythirteen/style.css”);
    /* =Theme customization starts here
    ————————————————————– */

    However it is still not working.

    Thread Starter stuartist1

    (@stuartist1)

    It now says that the Template is missing. So something has changed. is missing?

    Is your child theme’s folder in themes directly (wp-content/themes)?
    Child theme’s folder should be outside the parent theme folder in themes directory.

    Thread Starter stuartist1

    (@stuartist1)

    Yes it is I think:
    WP Content-themes-ChildTheme-style.css.

    Thread Starter stuartist1

    (@stuartist1)

    I am getting to the stage of frustration where I’m thinking of using a child theme plugin! Any suggestions? Or is this not recommended?

    for one I don’t think you need to use a child theme plugin – that just sounds like a mess.

    “template missing” means that the parent theme doesn’t exist, or that the index.php file isn’t there.

    in the comment at the top of style.css (part between /* and */ ) make sure that it has the following:
    * Template: twentythirteen

    also make sure that twentythirteen is installed and located in wp-content/themes/twentythirteen and that all files are in tact.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Looks like a permission issue http://www.stuartist.com/wp-content/themes/ChildTheme/style.css/?ver=2013-07-18

    Can you talk to your hosting providers about this

    Thread Starter stuartist1

    (@stuartist1)

    Hi, thank you everyone. It was a problem with my hosting. I now have a child theme. It is much appreciated, many thanks for all of your input.
    After reading so much about problems people have sorting there child theme, perhaps they should go to their host first.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Child Theme problems.’ is closed to new replies.