WordPress.org

Support

Support » How-To and Troubleshooting » Creating Child theme

Creating Child theme

  • Hi. Did it step by step using http://codex.wordpress.org/Child_Themes at localhost for Twentyten theme

    Inserted such title and code to new style.css in child theme directory just to try. Don’t see any new child theme in the wp-admin. please help.

    /*
    Theme Name: Twentyten child
    Description: Child theme
    Author: Kirill
    Template: twentyten
    Version: 0.1.0
    */

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

    .site-title a {
    color: #009900;
    }

Viewing 13 replies - 1 through 13 (of 13 total)
  • Don’t see any new child theme in the wp-admin. please help.

    Have you placed your Child Theme folder inside the \wp-content\themes\ folder? If so, it should appear at Appearance > Themes on your Dashboard.

    I put it in \wp-content\themes. Now it may be seen on my Dashboard, but when I activate it the template structure is wrong however I imported css format from the parent theme. How to fix this?

    Thanks

    WPyogi

    @wpyogi

    Forum Moderator

    Can you post a link to your site – that may help someone see what might be wrong. Also be aware that theme options/settings do not transfer from a parent to a child theme — same as changing to any other new theme.

    WPyogi, I just trying to learn how to make child themes at my localhost.
    I did not change Twentyten theme at all, just used this guide to import parent css settings to the child theme http://codex.wordpress.org/Child_Themes

    But that does not work.

    WPyogi

    @wpyogi

    Forum Moderator

    Oh sorry, you already said you are on local.

    Settings are theme-specific — they are not transferred to a child theme. Does the child theme look like the original (unmodified in any way) twentyten theme)?

    Michael

    @alchymyth

    Forum Moderator

    your import rule is missing the / after the two dots ..

    @import url("../twentyten/style.css");

    Oh, thanks that worked. But the command

    .site-title a {color: #009900;} did not change site title colour to green.
    What’s with that?
    Thanks very much.

    Michael

    @alchymyth

    Forum Moderator

    Twenty Ten does not have a css class .site-title;

    it uses the css id #site-title

    I tried Like this.
    #site-title a {color: #800000;}

    No examples work for twentyten as it seems. I am using this guide.http://codex.wordpress.org/Child_Themes

    I am sorry for these easy questions, but I am a beginner and try to learn something

    Michael

    @alchymyth

    Forum Moderator

    sometimes the browser holds on to old styles, so you don’t see the changes.
    you might need to clear the browser cache by pressing ‘reload’ (a few times?) or by pressing ‘ctrl f5’ or whatever is needed for your browser.

    Still does not work after clearing cache. Tried it with another theme. It is strange that child theme grabs parent style.css, but can not change anything as in examples.

    Michael

    @alchymyth

    Forum Moderator

    unfortunately, nobody can help with your issue as your site is on localhost.

    try to use a browser inspection tool (such as Firebug, or the right-click ‘inspect element’ in Firefox, or similar in other browsers) to get more insight into the styling of the site title or other elements.

    thanks. I managed to change link color and similar things. thanks for help, I’ll try to fix it.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Creating Child theme’ is closed to new replies.
Skip to toolbar