# using different slider in Sparkling theme

**URL:** <https://colorlibsupport.com/t/using-different-slider-in-sparkling-theme/20534>\
**Category:** Sparkling\
**Created:** [March 17, 2018, 11:28pm UTC](https://colorlibsupport.com/t/using-different-slider-in-sparkling-theme/20534 "2018-03-17T23:28:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgcgdesign](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/v/34f0e0/32.png) [@vgcgdesign](https://colorlibsupport.com/u/vgcgdesign)\
**Post date:** [March 17, 2018, 11:28pm UTC](https://colorlibsupport.com/t/using-different-slider-in-sparkling-theme/20534/1 "2018-03-17T23:28:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vgcgdesign](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/v/34f0e0/32.png) [@vgcgdesign](https://colorlibsupport.com/u/vgcgdesign)\
**Post date:** [March 17, 2018, 11:35pm UTC](https://colorlibsupport.com/t/using-different-slider-in-sparkling-theme/20534/2 "2018-03-17T23:35:25Z")

</div>

Sorry I’ve just solved the issue 🙂

---

<div class="post-metadata">

**Author:** ![laranz](https://colorlibsupport.com/user_avatar/colorlibsupport.com/laranz/32/362_2.png) [@laranz](https://colorlibsupport.com/u/laranz)\
**Post date:** [March 19, 2018, 6:10am UTC](https://colorlibsupport.com/t/using-different-slider-in-sparkling-theme/20534/3 "2018-03-19T06:10:31Z")

</div>

Hi,

Glad we helped. 🙂

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 | WordPress.org](https://wordpress.org/support/theme/sparkling/reviews/#new-post)

Thanks,  
laranz.
