• Hi, so I am new to the WooCommerce themes, but I do have both Storefront and the Boutique theme installed and working on my site. I now want to create a child theme to make edits to the Boutique theme, so I created a new folder for my child theme and added the following:

    – functions.php
    – screenshot.php
    -style.css which has this:

    /*
    Theme Name: GraciousSoul
    Version: 1.0
    Description: Child theme for Boutique.
    Author: WooThemes
    Author URI: http://www.woothemes.com
    Template: boutique
    */

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

    /* =Theme customization starts here
    ————————————————————– *//

    However, when I go into Appearances — Themes, I get the error message: “The “boutique” theme is not a valid parent theme..”

    Any way to fix this and get a child theme set up for Boutique? Thanks for any help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Unfortunately, you can’t. WordPress currently doesn’t allow “grandchild” themes, that is, a child theme of a child theme. If you can do what you’re trying to do with just CSS, that’s an option; otherwise, you’ll have to be aware of what changes you’re making and reapply them if/when Boutique is updated in the future.

    Thread Starter lcrowe555

    (@lcrowe555)

    That’s what I was thinking– but for example, I use Genesis themes mostly, and you can create a Child Theme for the Genesis Sample theme, which I thought was a child theme of the main Genesis framework… not sure if you are familiar with StudioPress and Genesis, maybe that is just set up differently.

    That’s possible. I’m not familiar with the inner workings of the Genesis framework and to be honest, I’m currently not interested in purchasing it to find out.

    Thread Starter lcrowe555

    (@lcrowe555)

    Can I just create a child theme for Storefront? If so, is there a link you can send me to for directions?

    Yeah. Check out the Codex page on child themes: http://codex.wordpress.org/Child_Themes

    In general, you only need two files in your child theme’s folder, style.css and functions.php. In functions.php, use this code:

    <?php
    
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    This code takes care of loading your parent theme’s stylesheet.

    In style.css, you only need this code:

    /*
    Theme Name: Storefront Child
    Template: storefront
    */

    And any CSS changes you’d like to make.

    Hey,

    As has been explained, you cannot create a child-child-theme. However, to edit a child I theme I highly recommend using a plugin. I built one that will allow you to do this which you can download here: https://github.com/woothemes/theme-customisations

    Just treat it like a child theme 🙂 Add your css to the css file and any php snippets to the functions.php file. Activate the plugin to enable your changes.

    Keeping your edits in a plugin actually makes a lot of sense when you think about it. It allows you to keep all changes in one place and easily activate/deactivate them without affecting the appearance of your site.

    Cheers!

    Hi,

    Sorry to bump this thread but I need to do similar thing, i.e customize Storefront’s child theme.

    What should I do if I need to customize WooCommerce template files in ‘wp-content/plugins/woocommerce/templates’? Should I copy them to the child theme folder? Will future updates to the child theme overwrite these template files?

    TIA!

    @battra

    > What should I do if I need to customize WooCommerce template files in ‘wp-content/plugins/woocommerce/templates’?

    In this case yes, those files should be copied to your child theme. The problem is though, as you figured out, those files will be overwritten when you update the child theme.

    Perhaps if you describe the change you’re making I can assist. There are few modifications that truly require a template overwrite and they are generally best avoided.

    Thanks

    Thanks for your offer to help with the code, I really appreciate it. I’m still in the early stage of designing my site so nothing much for now.

    After checking the template files, I assume I can play with removing/adding filters and using webhooks to alter the layout? I’m going to give it a try first.

    Thanks again, James!

    After checking the template files, I assume I can play with removing/adding filters and using webhooks to alter the layout? I’m going to give it a try first.

    Yup, the system is very flexible, you should be able to do just about anything without overwriting any templates.

    Cheers

    Another useful plugin might be WP Clips which also creates a plugin environment for customizations http://wpclips.net

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Creating Boutique Child Theme?’ is closed to new replies.