WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child Theme does not work (8 posts)

  1. zena1939
    Member
    Posted 1 year ago #

    Hello,
    I am trying to create a Child Theme in wordpress 3.5 and nothing seems to be working. I was trying to make one for the default twenty twelve theme. My child theme shows up it has this error

    This child theme requires its parent theme, Twenty Twelve.

    I looked at the wordpress codex tutorial on child themes. I followed it to the t but nothing seems to be working.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    What is in your child theme stylesheet? (Use the code buttons to post the code - it should only be the required header section, not a copy of the entire stylesheet) And what is the file structure you have set up?

  3. Hazlo
    Member
    Posted 1 year ago #

    Hello,
    I too have a trouble with creating a child theme for TwentyTwelve. I used a plugin (One click Child theme), and it worked fine for my former theme (Brunelleschi), but with TwentyTwelve the layout is totally in a mess (colors, links etc). I tried it a couple of times with the same result. So for the moment I use it "out of the box". but I'd like to make a few customizations however.
    Here is the URL.
    Any idea? Thx, in advance.

  4. zena1939
    Member
    Posted 1 year ago #

    I used my file manage in my host and this is the file structure

    wp-content ->themes->childtwentytwelve

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Your name here
    Template: twentytwelve
    */
    
    @import url("../twentytwelve/style.css");
  5. Hazlo
    Member
    Posted 1 year ago #

    Hello Zena
    Here is the code I used :

    /*
    Theme Name:     twentytwelvechild
    Author:         ***
    Template:       twentytwelve
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    */
    @import url("../twentytwelve/style.css");

    But in my case the issue was coming from a conflict with a plugin for Css script optimization. I disabled it and now it is all ok.

    Hope it's ok for you too now.

  6. zena1939
    Member
    Posted 1 year ago #

    What was the name of the plugin that was giving you conflict?

  7. zena1939
    Member
    Posted 1 year ago #

    OMG!! It worked!!! I even tried it on the minimatica theme and it worked!!
    Thank you so much!!

    I just have one more question

    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html

    Why are these two lines necessary?

  8. Hazlo
    Member
    Posted 1 year ago #

    I think those two lines are there mainly for courtesy.
    I'm just glad that you could fix it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.