WordPress.org

Ready to get started?Download WordPress

Forums

Creating Child theme (14 posts)

  1. Kirgol
    Member
    Posted 1 year ago #

    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;
    }

  2. leejosepho
    Member
    Posted 1 year ago #

    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.

  3. Kirgol
    Member
    Posted 1 year ago #

    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

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.

  5. Kirgol
    Member
    Posted 1 year ago #

    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.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

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

  7. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

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

    @import url("../twentyten/style.css");
  8. Kirgol
    Member
    Posted 1 year ago #

    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.

  9. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

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

    it uses the css id #site-title

  10. Kirgol
    Member
    Posted 1 year ago #

    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

  11. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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.

  12. Kirgol
    Member
    Posted 1 year ago #

    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.

  13. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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.

  14. Kirgol
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.