Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Carousel doesn’t work when I include parent styles in child theme

$
0
0

Replies: 0

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 http://codex.wordpress.org/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’)
);
}
//


Viewing all articles
Browse latest Browse all 59525

Trending Articles