• I am trying to do a childtheme, followed the instructions and uploaded the .zip only to get this error below which I don’t understand. Can someone help me out? Thanks!

    Installing Theme from uploaded file: twentyelevenchild.zip
    Unpacking the package…

    Installing the theme…

    The package could not be installed. The style.css stylesheet doesn’t contain a valid theme header.

    Theme install failed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • What is in the header of your stylesheet (i.e. the first section with theme name, template, etc.)

    Thread Starter Bernardini

    (@bernardini)

    I think this is where I messed up. ( I use godaddy hosting ) here is what I did.

    I created a new directory under themes and named it twentyelevenchild.

    Within in it I created a style.css ( when clicking the folder thats all thats in it )

    I then zipped it and thats when I got the upload error.

    My guess is I created the theme folder totally wrong.

    Yes, the top of the page MUST look like this (obviously change in info that is specific to your theme:
    `
    /*
    Theme Name: Twenty Eleven Child
    Theme URI: http://example.com/
    Description: Child theme for the Twenty Eleven theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: twentyeleven
    Version: 0.1.0
    */

    See this page for more details:
    http://codex.ww.wp.xz.cn/Child_Themes

    Thread Starter Bernardini

    (@bernardini)

    ok I did what you said and it allowed me to successfully upload it and I activated it and now the format is out of whack. I fixed my custom header but now there is a Main Menu link and I had 2 pages ( Photo Gallery/Video Vault ) which are now blue links whereas prior they were lined up under the header. Again something stupid I did I’m sure lol. Thank you for your patience with me and help.

    gianluca.mobi is the site

    Thread Starter Bernardini

    (@bernardini)

    Luckily I have not started the real build so it’s not like I am going to lose anything I cant redo. The main reason I did the child theme was to remove the text headers that are automatically displayed when creating a new page.

    It looks like you copied the “backticks” (these ` — above and below the commented text) into the stylesheet — so try removing those.

    Thread Starter Bernardini

    (@bernardini)

    yeah I never removed those backticks and did so and now get this error…ugh

    Destination folder already exists. /home/content/71/9458671/html/wp-content/themes/ChildTwentyEleven/

    Theme install failed.

    Thread Starter Bernardini

    (@bernardini)

    just deleted the uploaded childtheme that was there and reuploaded the new one minus the backticks and same issue format was when I preview it.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘style.css stylesheet error message’ is closed to new replies.