WordPress.org

Ready to get started?Download WordPress

Forums

Broken child theme (14 posts)

  1. ineslik
    Member
    Posted 1 year ago #

    Hi. I am newbie in bogging, I can't cope with child theme. I created style.css file and loaded it with content . theme is still broken. Suggest something, please.
    /*
    Theme Name: mytwentyeleven
    Theme URI: http://herbiness.com/
    Description: Child theme for the Twenty Eleven theme
    Author: Iness
    Author URI: http: //herbiness.com/
    Template: twentyeleven
    Version: 1.0
    */

    @import url("../twentyeleven/style.css");

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    What is the directory structure of your twenty-eleven and the child theme files?

    Did you activate the child theme?

  3. ineslik
    Member
    Posted 1 year ago #

    I may not understand that question.
    I in wp-content in themes file I created mytwentyeleven file an inside that file I created style.css file

    I didn't activate the child theme. I didn't know I have to. 24 hours ago I didn't understand whai FTP is, so......

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay, it's kind of hard to understand so much new information when you are starting out. Start by reviewing the directions for creating a child theme - make sure that the file structure is correct on your site.
    http://codex.wordpress.org/Child_Themes

    Then be sure that you change to the child theme -- perhaps this will be helpful.

    http://codex.wordpress.org/Using_Themes

  5. apoboul
    Member
    Posted 1 year ago #

    Sorry if I'm hijacking the thread, but I think it's relevant.

    From the first link you put above, is this:

    "style.css is the one and only required file in a child theme."

    true?

    I have made several efforts to make it work and always get the "Broen Theme" message (The following themes are installed but incomplete. Themes must have a stylesheet and a template.)

    Do I HAVE to put the other files in the child's folder or not?

    Thanks

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    @apoboul

    please start your own topic,
    and include the full code of style.css of your child theme, and the directory structure where the child theme is located, and ideally also a link to your site.

  7. apoboul
    Member
    Posted 1 year ago #

    OK, sorry about that!

  8. ineslik
    Member
    Posted 1 year ago #

    I have changed the directory, file twchild IN twentyeleven file. Now I have
    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    just like apoboul

    I will try to put some content to that
    lets say I want to decrease the high of the header image on http://www.herbiness.com
    just like in the tutorial http://voodoopress.com/customizing-twentyeleven-lets-start-with-width-and-smaller-header/ . It made me totally confused.

  9. ineslik
    Member
    Posted 1 year ago #

    I've just noticed that when I have a folder "mytwentyeleven" next to twentyeleven and that folder is empty, my wp- control panel shows the template name.

    when I have style.css file with a content the name isn't displayed. It might be some minor mistake I make, but I can't see where.

    I've even tried to copy under /*my content*/ all content from twentyeleven style.css , beginning from the wotd "html" . Didn't work.

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I've just noticed that when I have a folder "mytwentyeleven" next to twentyeleven and that folder is empty, my wp- control panel shows the template name.

    That's what it is supposed to do. And INSIDE the "mytwentyeleven" folder, you need to have the stylesheet which only has the top section as described in the directions for making a child theme -- this:

    /*
    Theme Name: mytwentyeleven
    Description: Child theme for the twentyeleven theme
    Author: Your name here
    Template: twentyeleven
    */
    
    @import url("../twentyeleven/style.css");

    Do not copy any content anywhere or any styles from the parent theme into the style.css file.

  11. ineslik
    Member
    Posted 1 year ago #

    Well, thank you.

    And INSIDE the "mytwentyeleven" folder, you need to have the stylesheet

    that was everything I needed. It is hard to imagine, but I was creating that folder named "style.css" in "mytwentyeleven" and then inserting file style.css via ftp.

    Now I have what I wanted to have.
    Thank you once more.

  12. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    LOL! Glad you got it sorted out -- it IS confusing when you are doing this kind of thing for the first time -- so good job for sticking with it!

  13. ineslik
    Member
    Posted 1 year ago #

    should I activate that theme? when I do my blogs looks "O" - just blank site with 0

  14. ineslik
    Member
    Posted 1 year ago #

    okay, it works. I've changed a few things by now. I really enjoy that php,css, ftp things. So exotic for me!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.