WordPress.org

Support

Support » Themes and Templates » [Resolved] Child theme not working properly

[Resolved] Child theme not working properly

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi
    Forum Moderator

    @esmi

    That would probably be because of all of the CSS in the child’s stylesheet.

    Jan Dembowski
    Volunteer Mod. & Brute Squad

    @jdembowski

    http://wordpress.org/extend/themes/dailypost

    Hrm. I think it’s line 39 on that theme’s header.php file which looks like this:

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    I’ll check in a bit but I think that would cause the theme to ignore the child theme’s CSS.

    esmi
    Forum Moderator

    @esmi

    When I checked using Firebug, the child’s CSS was being applied. But the child’s stylesheet is huge – so an awful lot of CSS has already been added to the child’s stylesheet.

    Jan Dembowski
    Volunteer Mod. & Brute Squad

    @jdembowski

    Esmi’s right, it’s your CSS. That line I referenced is fine. 😉

    That’s a nice looking theme and except for some inserted CSS in the header (wp-content/themes/dailypost/images/primary-bg.png), looks like it can be child theme’ed well.

    It might have been all those tags you copied into the child theme’s style.css file. Try something more minimal.

    http://codex.wordpress.org/Child_Themes

    Create a directory called wp-content/themes/dailypost-child and put this small style.css file in it.

    /*
    Theme Name: DailyPost Child Theme
    Author: Self-Help WordPress User
    Template: dailypost
    */
    
    @import url("../dailypost/style.css");

    And nothing else.

    Now go to your WordPress dashboard and activate the theme DailyPost Child Theme and add just the CSS you want to change to that new style.css file.

    Don’t add anything else just the CSS portions you want to change. Don’t copy any comments into it either.

    opportunist86
    Member

    @opportunist86

    Esmi’s right, it’s your CSS. That line I referenced is fine. 😉

    That’s a nice looking theme and except for some inserted CSS in the header (wp-content/themes/dailypost/images/primary-bg.png), looks like it can be child theme’ed well.

    It might have been all those tags you copied into the child theme’s style.css file. Try something more minimal.

    http://codex.wordpress.org/Child_Themes

    Create a directory called wp-content/themes/dailypost-child and put this small style.css file in it.

    /*
    Theme Name: DailyPost Child Theme
    Author: Self-Help WordPress User
    Template: dailypost
    */

    @import url(“../dailypost/style.css”);
    And nothing else.

    Now go to your WordPress dashboard and activate the theme DailyPost Child Theme and add just the CSS you want to change to that new style.css file.

    Don’t add anything else just the CSS portions you want to change. Don’t copy any comments into it either.

    Thanks mate. I already did it. Problem solved.. love you guyz!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Child theme not working properly’ is closed to new replies.