• Resolved ajshot01

    (@ajshot01hotmailcom)


    How do I create a child theme using the Snowberry theme please. So far, I have created a file in the backup files under themes as “Snowberry-child”…

    thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • See: http://codex.wordpress.org/Child_Themes

    Nothing to do with backup files.

    Thread Starter ajshot01

    (@ajshot01hotmailcom)

    thank you. I was working through this advice but got stuck on: “In the child theme directory, create a file called style.css. This is the only file required to make a child theme. The style sheet must start with the following lines:…”

    Not sure how to create a file?

    You need to do that on your local computer using a plain text editor.

    Thread Starter ajshot01

    (@ajshot01hotmailcom)

    Ok I have created the file in text editor and I have wrote the following:

    @import url(“../twentytwelve/style.css”);
    /*
    Theme Name: Twenty Twelve Child
    Theme URI: http://example.com/
    Description: Child theme for the Twenty Twelve theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: twentytwelve
    Version: 0.1.0
    */

    But of course changed the detail to match my Snowberry theme, I have then saved the file in my Snowberry-child directory. However, it does not come up in the WordPress available downloaded themes for me to activate. Do I need to copy the CSS style sheet from my parent theme or what do I do?

    Sorry if I’m being silly!

    Thanks

    is your Snowberry-child theme’s folder located in the correct place/folder,
    ie wp-content > themes
    (you mentioned at the start you had created it in the back up folder which is incorrect and thus would not show the theme available in your dashboard to activate).

    This is what that file should contain:

    /*
    Theme Name: Snowberry Child
    Template: snowberry
    */
    
    @import url("../snowberry/style.css");

    Do not put anything else in the file for now.

    Then make sure the file structure is correct as noted above.

    Thread Starter ajshot01

    (@ajshot01hotmailcom)

    In “downloads-wordpress-wp-content-themes-“

    there is not a snowberry file, only twentyeleven & twentytwelve? is this correct?
    The only place I can find snowberry files is in the backup files

    thanks

    You need to be looking on the SERVER, not on your local computer. Do you have FTP access set up for your site on the server?

    Thread Starter ajshot01

    (@ajshot01hotmailcom)

    Sorted! Thank you. As expected, I have lost a lot of the work I had done when I was changing the css. Is it ok to now change the CSS of the child theme with some of the additions mentioned here:

    http://wordpress.org/support/topic/theme-snowberry-how-to-change-background-colour-in-editor?replies=21

    Thanks

    Yep, and actually if you still have a copy of that file that you changed, you can use a http://www.diffchecker.com/ to find your changes.

    Settings/options for the theme – you’ll need to redo those in the child theme – as they don’t get carried over.

    But at least you got this set up now – before you got further down the path :). Looks like it’s set up perfectly – yay! Good Job!

    Thread Starter ajshot01

    (@ajshot01hotmailcom)

    Brilliant, really appreciate your help and patience. One final question on the subject, do I have to change the CSS for the parent theme back to the original coding or will that change automatically when an update is available?

    To make changes to the child theme can I just add codex under “@import url(“../snowberry/style.css”);” ??

    Thanks

    Yeah, probably best to replace that original style.css file with a new one so that way you’ll know that the changes to the child theme are actually working – otherwise you might get rudely surprised when the theme IS updated. And yep, just add the code under that @import line.

    If you’re not yet using it, download and install Firebug – addon for Firefox – it’s the best tool for CSS work.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Creating a child theme using the Snowberry theme?’ is closed to new replies.