Support » Fixing WordPress » Can't get twentytwelve child theme to work

  • Resolved ian277

    (@ian277)


    Hi all,

    I can’t get the new twentytwelve child theme to work out. Here’s my style.css created in dreamweaver and saved as a style.css file.

    /*
    Theme Name: Twenty Twelve Child
    Template: twentytwelve
    */

    @import url(“../twentytwelve/style.css”);

    No style shows on my child theme. I’ve done a test and created a twentyeleven child theme this way and it works fine. Any thoughts?

    Thanks a bunch in advance!

Viewing 15 replies - 16 through 30 (of 30 total)
  • esmi

    (@esmi)

    Forum Moderator

    Did you open the style.css file in your own text editor at all? I’m wondering if perhaps it’s a file encoding issue.

    I opened the css file in dreamweaver and everything looks right.

    esmi

    (@esmi)

    Forum Moderator

    Can I suggest downloading a fresh copy, unpacking it and uploading it straight to your site? And also make sure that you are uploading the .css file in ASCII (as opposed to binary) format.

    Do you have to be using a WP 3.5beta for a 2012 child to work?

    resolved my problem, can’t find how to delete this post

    I’ve resolved this as well. On 3.4.2. What I did was create another 2012 child theme that was empty except for @import. I activated it. Then I went back and was able to active my other child theme. It then seemed to take. I don’t have any idea egg it just didn’t work the first time.

    Thanks guys, but no change for me. I can’t seem to get it to function properly. Any other steps you think I should take?

    Thanks.

    You have a typo, @esmi. You wrote Theme Name:Twenty Twelve Child, missing a space after colon, should be Theme Name: Twenty Twelve Child.

    Hope that works…

    I appreciate all the help everyone – no changes I’ve made had any impact though. I’ll keep working on it and let everyone know of my success.

    Hi everyone,

    I’ve resolved this issue with Andrew Nevin’s help.

    My problem was the folder name for my child theme. I had it as twentytwelve child but removed the space and changed it to twentytwelvechild and the style.css worked.

    Thanks for all the help!

    the right way is to work with the functions.php file:

    wp_dequeue_style( ‘twentytwelve-style’ );
    wp_deregister_style( ‘twentytwelve-style’ );
    wp_register_style( ‘twentytwelve_style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘twentytwelve_style’ );

    must be put where it should. codex 🙂

    Interesting…
    Today I got the same problem as ian277 when I tried his code for my child theme css.
    My solution was just to get rid of the quotes and the template import worked.

    /*
    Theme Name: Twenty Twelve Child
    Template: twentytwelve
    */
    @import url(../twentytwelve/style.css);

    Runtheball

    (@eisenbart)

    My problem was the folder name for my child theme. I had it as twentytwelve child but removed the space and changed it to twentytwelvechild and the style.css worked.

    Confirmed. I had exactly the same problem, and removing the space in the child theme name solved it.

    I’m having a similar problem. The previous fixes have not worked.
    A formatting change is occurring; however, it’s not correct.
    Site: artuspt.com

    Newbie, please help.

    WPyogi

    (@wpyogi)

    Forum Moderator

    @c-ro – sorry, but this thread is old and already marked resolved. Please see: http://codex.wordpress.org/Forum_Welcome#Where_To_Post and start a new thread if you need help.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Can't get twentytwelve child theme to work’ is closed to new replies.