Multiple stylesheets in child theme – Not all loading
-
Hello,
I have two stylesheets in my child theme. Style.css in the root directory which loads fine and slider.css in /inc/css. Slider.css does not load. Below is my functions.php file. Any help is much appreciated.
Site: cheekycelie.com
<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’, 9999 );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘slider-style’, get_template_directory_uri() . ‘/inc/css/slider.css’ );
}
?>This is at the top of my child theme slider.css file:
/*
Theme Name: SG Window
Theme URI: http://www.wordpress.org/wp-content/themes/sg-window-child/
Description: SG Window Child Theme
Author: April Ambroise
Author URI: http://cheekycelie.com
Template: sg-window
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: sg-window-child
*/
The topic ‘Multiple stylesheets in child theme – Not all loading’ is closed to new replies.
