WordPress.org

Ready to get started?Download WordPress

Forums

Child theme doesnt load parent css (13 posts)

  1. json21
    Member
    Posted 1 year ago #

    I am using the following code in child theme's css:

    /*
    Theme Name:     Twenty Twelve Child
    Template:       twentytwelve
    */
    
    @import url("../twentytwelve/style.css");
    
    /*the rest of css goes here */

    I am using a different child theme with the same code on the same server, and everything is working fine.

    Is there any way to figure out what's going on. I checked permissions (compared it to a different server, on which the files work), and run it throuh Firebug, and Chrome Webmaster tools.

    Styles in child theme's css work, it just does not import the twentytwelve stylesheet.

    Thank you.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    You can download a pre-made Twenty Twelve child theme from here. It's been tested about 600 times, so I'm pretty sure it works. :-)

    If you still have problems with that child theme, then I think we have to start considering some sort of server-based problem.

  4. json21
    Member
    Posted 1 year ago #

    This is kind of strange, because the child theme that I am talking about works on my server, and it doesnt work on the server "B". There is also a different child theme (to Twenty Eleven) on the server "B" that works, so I am not sure what is going on.

    In general, the child theme stylesheet works, but it does not import all the parent theme styles. I am sure there is a way to figure out what's going on (browser webmaster tools etc; I tried it though, and I did not see anything there).

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Did you try the downloadable child theme that I linked to above?

  6. json21
    Member
    Posted 1 year ago #

    I tested the downloadable child theme, and it does not import the parent theme's css either.

    I was thinking about WP Minify plugin getting in the way. I cleared this plugin's cache, but it doesnt make a difference. Again, I have a different child theme that works fine (I actually have more than one that work)

  7. polly001
    Member
    Posted 1 year ago #

    hi this is very interesting as i have been having similar issues for days and been so perplexed and delayed!!
    I basically started from scratch and I can activate my child theme fine and it seems to be linking to the parent theme however the very strange thing is when I look at the dashboard>themes page underneath my child theme it has a line of text saying
    This child theme requires its parent theme, Twenty Twelve.
    can't figure out why this is!

    see more details on problems I've been having with various themes on my post

    http://wordpress.org/support/topic/problem-with-child-themes-spun-and-twenty-twelve?replies=9

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    I tested the downloadable child theme, and it does not import the parent theme's css either.

    So the problem lies elsewhere. Are there any plugins installed or active on this site?

    @polly001: Your problem is different. Please stick to your own topic.

  9. json21
    Member
    Posted 1 year ago #

    I dont know what to think about all that now :)

    1) My child theme works on server A
    2) My child theme doesnt work on server B
    3) Different child theme works on server B
    4) Your child theme on Go Daddy (which is a reputable hosting company) doesnt work with Twenty Twelve

    I've made quite a lot of child themes in the past, and I've never had any problems like that. Maybe it is something with Twenty Twelve then (twenty twelve + some hosting differences maybe)?

  10. json21
    Member
    Posted 1 year ago #

    I have several plugins:

    jQuery lazy load plugin
    Wordpress SEO (Yoast)
    WP Minify

    and some other ones. All these plugins are installed on the other blog with a child theme that works (it is a multisite installation).
    I can't really deactivate all the plugins, and start adding them one by one, since the websites are live, and they are getting visitors etc.

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    There is no magic bullet in these situations. You need to carry out some basic troubleshooting.

  12. niklaseee
    Member
    Posted 1 year ago #

    I have exactly the same problem! Frustrating!

  13. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @niklaseee - are you asking for help with your site? If so, please start a new thread and post a link to your site in it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.