Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter delidoodle

    (@delidoodle)

    Hi Eric,

    I removed the custom.css file and put my css in the child style.css file as you suggested. The storefront customizer is now working. Here is what I put in the child function.php file.

    add_filter( 'wp_enqueue_scripts', 'storefront_woocommerce_scripts', 1);
    
    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')
        );
    }

    Thanks for the help.

    James – I followed your suggestions by leaving the style.css blank, enqueueing a separate style sheet and hooking my custom.css stylesheet later than woocommerce.css. Now any changes I make using the built-in theme customizer (Appearance/Customize) are ignored. How do I re-enable the theme customizer? Thanks.

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 30);
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/custom.css',
            array('parent-style')
        );
    }
    Thread Starter delidoodle

    (@delidoodle)

    My question is actually more general than I originally posted. More broadly I am wondering if the automatic updating process within WordPress overwrites files that were added to the older theme version such as custom.css and new template files.

    Thread Starter delidoodle

    (@delidoodle)

    I have used your plugin on sites where I am only making a few modifications. Works quite well. When making multiple modifications I prefer working with a text editor using a child.css file in the child theme directory. Does updating a purchased child theme like Canvas/Uno leave the custom.css alone? I have searched www.remarpro.com without success. Thanks.

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