delidoodle
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Built in theme customizer not working in Storefront child theme.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.
Forum: Themes and Templates
In reply to: [Storefront] woocommerce.css overriding child theme style.cssJames – 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') ); }
Forum: Fixing WordPress
In reply to: Updating a child theme with a custom.css fileMy 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.
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] Simple CSS vs custom.cssI 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.