Hello,
If you are using shortcode in template, see this answer.
https://ww.wp.xz.cn/support/topic/using-shortcode-in-template-4/
Thanks for the quick reply- can you please provide details of where the add_filter should go with the condition?
Thank you,
Tom
Hello,
Open your theme or child theme functions.php file and add the following code to load only for front page.
add_filter('carousel_slider_load_scripts', 'carousel_slider_load_scripts');
function carousel_slider_load_scripts( $load_scripts ) {
if ( is_front_page() ){
return true;
}
return $load_scripts;
}
or write the following code to always load the slider scripts and style.
add_filter('carousel_slider_load_scripts', 'carousel_slider_load_scripts');
function carousel_slider_load_scripts( $load_scripts ) {
return true;
}
This is exactly what I was looking for, thank you Sayful!
Tom
-
This reply was modified 9 years, 2 months ago by
djdman2000.