Carousel doesn’t work when I include parent styles in child theme
-
Hello, after recent SSL-certificate installation and maybe some other website updates I saw that the carousel is not shown anymore.
I disabled all plugins, but that didn’t helped. I read all relative forum topics here, but still can’t figure out why.If I delete this code from child-theme/functions.php then everything works fine
<?php
//
// Recommended way to include parent theme styles.
// (Please see https://codex.www.ads-software.com/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( ‘wp_enqueue_scripts’, ‘politicalwp_enqueue_styles’ );
function politicalwp_enqueue_styles() {
wp_enqueue_style( ‘politicalwp-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘politicalwp-style’)
);
}
//
- The topic ‘Carousel doesn’t work when I include parent styles in child theme’ is closed to new replies.