Refresh Child Theme Styles
-
Hi,
I am developing a site using a child theme of Twenty Seventeen and cannot figure out how refresh the child theme’s style sheet during development. (Server side caching has been temporarily disabled.)
At first I enqueued both the parent style and child style in my theme’s functions.php and used time() to force WordPress to reload the css file:
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style), time() , 'all');but that caused the child style to load twice – my understanding is that Twenty Seventeen automatically loads the child theme style…
How can I reliably force WordPress to refresh the child theme style.css when the parent them is loading this file?
Many thanks, Andy
The page I need help with: [log in to see the link]
The topic ‘Refresh Child Theme Styles’ is closed to new replies.
