Slider on every pages

Hi guys,

I’m trying to get the slider on every pages, I tried this code (as explain in this thread: and got a server error.

When trying to edit the ‘functions.php’ file, I can’t find that line:

// Flexlider library
wp_enqueue_script( ‘flexslider-js’, get_template_directory_uri() . ‘/inc/js/flexslider.min.js’, array(‘jquery’), ‘20140222’, true );
in functions.php

Is it why this is not working? Could someone help, please? Thank you.

  • I mean I can’t find the line I have to replace with this line:
// Flexlider library
wp_enqueue_script( ‘flexslider-js’, get_template_directory_uri() . ‘/inc/js/flexslider.min.js’, array(‘jquery’), ‘20140222’, true );
in functions.php

It seems like the issue come from the child theme. I disabled child theme and the slider was shown on every pages. Now, once I re-activated child theme it’s ain’t working anymore :confused:

Updates: It works if you delete is_front_page() && from function sparkling_featured_slider() on the child theme’s functions.php file.

Hi @riri,

I hope you are well today and thank you for your question.

Please remove any changes you have made in the Sparkling theme and use the attached custom child theme of Sparkling theme that contains some custom code to achieve this.

Best Regards,
Movin

thank you

You are most welcome here :slight_smile:

To make it work with latest version of Sparkling theme, i have updated child theme and attached to this reply.