WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child theme not working properly (5 posts)

  1. opportunist86
    Member
    Posted 2 years ago #

    My site is ceramics tiles. I just setup a child theme but its not showing as original. Here is how i have configured style.css for child theme.

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

  2. esmi
    Forum Moderator
    Posted 2 years ago #

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

  3. 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.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    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.

  5. 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.

  6. opportunist86
    Member
    Posted 2 years ago #

    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!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.