WordPress.org

Ready to get started?Download WordPress

Forums

Sixhours
[resolved] updated sixhours theme but child theme not working (19 posts)

  1. pgb
    Member
    Posted 1 year ago #

    I have updated Sixhours but can't use the child theme that I was using as the update is so different. I have made a new child theme, but it just doesn't work. Below is my style.css, is it wrong?

    /*
    Theme Name: My Theme
    Description: Child theme for the sixhours theme
    Author: My Name
    Template: sixhours
    */
    
    @import url("../sixhours/style.css");
    
    #site-title a {
        color: #009900;
    }

    Should the Template name above be sixhours or Sixhours? I've tried both but it just doesn't work.

  2. pgb
    Member
    Posted 1 year ago #

    An update to the problem is when I try to activate my child theme, it doesn't work. I then activate Sixhours but I get a message at the bottom of the Themes page 'The parent theme is missing. Please install the "Sixhours" parent theme.'

    Bizarre! Has anybody else encountered this problem?

  3. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    I tested your above stylesheet as a child theme and it's working fine with my copy; the code is not working because it's not targeting the right element. #site-title should be .site-title:

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

    If you're unable to get the theme itself to work on its own, try reinstalling it before activating your child theme.

    (You may be using the above style as an example, and if so, disregard this advice. But if what you're trying to do is change the color of the site title text, you can do that under Appearance -> Header, you don't necessarily need a child theme at all.)

  4. pgb
    Member
    Posted 1 year ago #

    Thank you Caroline. I was using the above style as an example. I have done as you suggest and reinstalled Sixhours, I even reinstalled my child theme but I still get the same message The parent theme is missing. Please install the "Sixhours" parent theme.

    Is there anything else to try?

  5. pgb
    Member
    Posted 1 year ago #

    Many apologies!

    I have my child theme in place now. I had the template name as Sixhours, I have changed it to sixhours and everything is in place. I have no styles in my child theme style.css but neither has the website. It has not inherited the style.css of sixhours.

    Have I missed something?

  6. pgb
    Member
    Posted 1 year ago #

    More apologies. I have made a child theme of twenty twelve and this has also not inherited the style.css of twenty twelve. Perhaps something is wrong with my WordPress 3.5 installation!

  7. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you provide a link to your webpage that has the issue?

  8. pgb
    Member
    Posted 1 year ago #

    http://www.jimrattigan.com

    At the moment I am using the sixhours theme.

  9. pgb
    Member
    Posted 1 year ago #

    I copied all the styles from sixhours style.css to my my child style.css but this did not work, there was still no styling, just html.

  10. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    I don't see the problem http://awesomescreenshot.com/015r8vve1

  11. pgb
    Member
    Posted 1 year ago #

    Thank you Andrew. I will leave the site on my child theme for about half an hour, for you to see. There is no styling.

  12. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    In the /wp-content/themes/ directory, is there a folder named '2012child' ?

  13. pgb
    Member
    Posted 1 year ago #

    Yes, that's another child theme I made of 2012. That doesn't work either.

  14. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    What is the folder's name?

  15. pgb
    Member
    Posted 1 year ago #

    jazz 2011

  16. pgb
    Member
    Posted 1 year ago #

    Sorry it's jazz 2013

  17. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try using a name that does not include numbers.

    Also, the child theme style.css file should not include anything copied from another theme -- CSS is totally site specific, so if you are changing to the twentytwelve theme (??) then you'll need to start making modifications specific to that theme.

  18. pgb
    Member
    Posted 1 year ago #

    Thank you WPyogi. I have renamed the folder for the child theme without numbers and that has solved the problem. A lesson learnt!
    Thanks also to Andrew and Caroline.

  19. secretfocus
    Member
    Posted 8 months ago #

    I have created a child theme folder and created a style.cssfile for my site http://f8photoshots.co.uk using the following:

    /*
    Theme Name: sixhours Child
    Theme URI: http://example.com/
    Description: Child theme for the sixhours theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: sixhours
    Version: 0.1.0
    */

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

    However, the site does not display properly and I have a couple of screen shots to show the problem but cannot work out how to send them.

    Had to resort to the original theme to keep it working!

    I cannot see what I have done wrong and hope you have some ideas.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic