• Resolved JudahsMom63

    (@judahsmom63)


    I know this topic has been kicked around ad nauseum, but I just can’t seem to find the answer I need. Using the Codex instructions I built a child theme for my Storefront parent theme, but I can’t get it to show up in Appearance>Themes. In my child folder I have 3 files: style.css, functions.php, and rtl.css. I coded them thus:
    STYLE.CSS

    /*
     Theme Name:   Storefront Child
     Theme URI:    http://picklestreetcreations.com/PSC_E_com/
     Description:  Storefront Child Theme
     Author:       WooThemes, with help from Nancy Bode
     Author URI:   http://picklestreetcreations.com
     Template:     storefront
     Version:      1.3.1
     License:      GNU General Public License v2 or later
     License URI:  http://www.gnu.org/licenses/gpl-2.0.html
     Tags:         black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors,
    			   custom-header, custom-menu, featured-images, full-width-template, threaded-comments
     Text Domain:  storefront-child
    */
    
    @import url("../storefront/style.css");
    
    @charset "UTF-8";

    FUNCTIONS.PHP

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

    RTL.CSS

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

    The only thing I found strange was that there was no closing ?> in the Codex php text, so I left it out of mine, too. Someone please help!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi, I think the Template: field is case sensitive? if there is a mismatch there, that may cause some problems.

    It’s worth a try 😀

    Yes, it is case sensitive, but the parent theme folder is lowercase.

    Where is the child theme folder located? It should be on the same level as the parent theme (not inside it).

    Thread Starter JudahsMom63

    (@judahsmom63)

    albertsrun – My file names are all lower case, so I went through and made everything in the files lower case, refreshed everything, but no change. Thanks for trying, though. If you have other suggestions, I’d happily try them!

    Also, try using just this in the functions.php file (file names should not be capitalized):

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

    in style.css, try just this:

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

    Thread Starter JudahsMom63

    (@judahsmom63)

    WPyogi – in my themes folder I have my storefront folder, my storefront-child folder, and an index.php file. In my storefront folder is another storefront folder, and inside that subfolder are all of my storefront files. In my storefront-child folder are my three files. Is the storefront parent subfolder a possible problem?

    Thread Starter JudahsMom63

    (@judahsmom63)

    WPyogi – I made the suggested code changes, but it didn’t help. But I’ll try any other suggestions you have!

    In my storefront folder is another storefront folder, and inside that subfolder are all of my storefront files.

    That doesn’t sound correct – I just downloaded storefront and all the files are directly in the folder.

    Is the child theme not showing up at all in the dashboard?

    Thread Starter JudahsMom63

    (@judahsmom63)

    WPyogi – nope, not at all.

    Thread Starter JudahsMom63

    (@judahsmom63)

    Maybe I should delete my parent and reload it. I use Filezilla for transfers.

    Yep, try deleting the parent theme and reinstalling it from the Dashboard.

    And did you try redoing your child theme files per what I posted above?

    Thread Starter JudahsMom63

    (@judahsmom63)

    WPyogi – Yes. That’s #7.

    Can you post a link to your site? Did you reinstall the parent theme?

    How are you creating the files for the child theme? Using a text editor?

    Thread Starter JudahsMom63

    (@judahsmom63)

    WPyogi – I started over, except this time instead of getting the theme from WooCommerce I did as you suggested and got it through the dashboard. Then, before I did anything else, I created the child theme and viola! it worked. I was able to activate my child theme and now I can go and edit it. I really appreciate your help! If you want to see the site raw before I start adding stuff, it’s http://www.picklestreetcreations.com/PSC_E_com/

    I also have another site that I’m working on that’s not e-commerce. That one is http://www.picklestreetcreations.com/

    Have a look around my sites if you like, and thanks again! You’re the best!

    OMG, awesome to hear that!! Yay!!

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

The topic ‘storefront child theme broken’ is closed to new replies.