Title: Using optional slider &#8211; where to insert code?
Last modified: August 22, 2016

---

# Using optional slider – where to insert code?

 *  Resolved [jbkeefer](https://wordpress.org/support/users/jbkeefer/)
 * (@jbkeefer)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-optional-slider-where-to-insert-code/)
 * Since the theme sliders appear broken I am looking to use meta slider. I have
   the code to put in the template file, but not sure where I should put it.
 * Anyone pick this apart yet and can suggest the appropriate location to include
   the php code.
 * I am thinking in the header, where the other slider scripts are, but could use
   a little piece of mind before I start picking this apart.
 * Thank you,
 * Jamie

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jbkeefer](https://wordpress.org/support/users/jbkeefer/)
 * (@jbkeefer)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-optional-slider-where-to-insert-code/#post-5521125)
 * If anyone is wondering, it is in the header after the “<!–BEGIN .content–>” documentation.
 * This will make it appear on all pages, however.
 * If you want just on home page use this:
 * <?php if(is_home() && is_front_page()) {
 *  echo do_shortcode(“[metaslider id=336]”);
    }?>
 *  Thread Starter [jbkeefer](https://wordpress.org/support/users/jbkeefer/)
 * (@jbkeefer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/using-optional-slider-where-to-insert-code/#post-5521409)
 * Fix no longer required with theme update.
 * marking resolved.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using optional slider – where to insert code?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/evolve/4.3.7/screenshot.png)
 * evolve
 * [Support Threads](https://wordpress.org/support/theme/evolve/)
 * [Active Topics](https://wordpress.org/support/theme/evolve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/evolve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/evolve/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [jbkeefer](https://wordpress.org/support/users/jbkeefer/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/using-optional-slider-where-to-insert-code/#post-5521409)
 * Status: resolved