using different slider in Sparkling theme

Hello, I selected sparkling child theme as my wordpress theme because of its neat and organized design. But as my homepage slider, I decided to use metaslider since it uses image files rather than posts as slides. I put the <?php echo do_shortcode(’[metaslider id=“xyz”]’); ?> entry into the header.php right under the <div class=“top-section”>. But I want to make this slider visible on just my homepage. When I try to paste <?php
if (is_home() || is_front_page()) {
echo do_shortcode(“[metaslider id=xyz]”);
?> entry in functions.php some error occured. I’d be glad if you help me to solve this problem.

Sorry I’ve just solved the issue :slight_smile:


Glad we helped. :slight_smile:

Let us know If you have any other questions. Please feel free to contact us again in the future regarding any other issues.

If you’re happy with our service, don’t forget to rate us: [Sparkling] Reviews |