Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
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 );
Hi 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!