• Hi. Did it step by step using https://codex.www.ads-software.com/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.

    Thread Starter Kirgol

    (@kirgol)

    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

    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.

    Thread Starter Kirgol

    (@kirgol)

    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 https://codex.www.ads-software.com/Child_Themes

    But that does not work.

    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)?

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

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

    (@kirgol)

    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.

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

    it uses the css id #site-title

    Thread Starter Kirgol

    (@kirgol)

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

    No examples work for twentyten as it seems. I am using this guide.https://codex.www.ads-software.com/Child_Themes

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

    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.

    Thread Starter Kirgol

    (@kirgol)

    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.

    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.

    Thread Starter Kirgol

    (@kirgol)

    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.