Child Theme CSS Not Working After 1.0.6 Update
The child theme CSS for Unwind is no longer working.
style.css
/* Theme Name: Unwind Child Author: SiteOrigin Author URI: http://siteorigin.com/ Theme URI: https://siteorigin.com/theme/unwind/ Description: Unwind Child Theme Version: 1.0.0 Template: siteorigin-unwind Text Domain: siteorigin-unwind Domain Path: /languages/ */
funtions.php
<?php
/**
* Enqueue the parent theme stylesheet.
*/
function unwind_child_enqueue_parent_style() {
wp_enqueue_style( 'unwind-parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'unwind_child_enqueue_parent_style', 8 );
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
4Hi Zicara,
Please try replacing your functions.php with:
<?php /** * Enqueue the parent theme stylesheet. */ function unwind_child_enqueue_parent_style() { wp_enqueue_style( 'unwind-parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'unwind-child-style', get_stylesheet_uri(), array( 'unwind-parent-style' ) ); } add_action( 'wp_enqueue_scripts', 'unwind_child_enqueue_parent_style', 8 );Thank you for the quick response Alex! The unwind child css is loading now, but it is loading before the parent’s minified css.
Hi Zicara,
That’s odd. Try:
<?php /** * Enqueue the parent theme stylesheet. */ function unwind_child_enqueue_parent_style() { wp_enqueue_style( 'unwind-child-style', get_stylesheet_uri(), array( 'siteorigin-unwind-style' ) ); } add_action( 'wp_enqueue_scripts', 'unwind_child_enqueue_parent_style', 11 );That worked. Thank you!
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.