Title: Mo2web's Replies | WordPress.org

---

# Mo2web

  [  ](https://wordpress.org/support/users/mo2web/)

 *   [Profile](https://wordpress.org/support/users/mo2web/)
 *   [Topics Started](https://wordpress.org/support/users/mo2web/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mo2web/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mo2web/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mo2web/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mo2web/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mo2web/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to insert slider in header.php to appear only in the Home page](https://wordpress.org/support/topic/how-to-insert-slider-in-headerphp-to-appear-only-in-the-home-page/)
 *  [Mo2web](https://wordpress.org/support/users/mo2web/)
 * (@mo2web)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/how-to-insert-slider-in-headerphp-to-appear-only-in-the-home-page/page/2/#post-3286995)
 * Sorry, not sure about your particular theme..
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to insert slider in header.php to appear only in the Home page](https://wordpress.org/support/topic/how-to-insert-slider-in-headerphp-to-appear-only-in-the-home-page/)
 *  [Mo2web](https://wordpress.org/support/users/mo2web/)
 * (@mo2web)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/how-to-insert-slider-in-headerphp-to-appear-only-in-the-home-page/page/2/#post-3286994)
 * Hi,
 * Put this code in your header.php but replace the middle line with the metaslider
   php code given to you (you can find it at the bottom right corner of the meta
   slider page).
 * <?php if ( is_home() ):?>
    <?php echo do_shortcode(“[metaslider id=1]”); ?> <?
   php endif; ?>
 * Hope that helps
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to insert slider in header.php to appear only in the Home page](https://wordpress.org/support/topic/how-to-insert-slider-in-headerphp-to-appear-only-in-the-home-page/)
 *  [Mo2web](https://wordpress.org/support/users/mo2web/)
 * (@mo2web)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-slider-in-headerphp-to-appear-only-in-the-home-page/#post-3286991)
 * Thank you everyone for posting your solutions, it has been very helpful!
 * One thing I still don’t get, how do I ensure that the slider is full width (and
   adjusts to full screen in different screen sizes) as in the Nimble theme demo.
   I used the:
 * <?php if ( is_home() ):?>
    Your Slider HTML goes here <?php endif; ?>
 * in my header.php but my slider is not full width. Can anyone please help??
 * (I tried opening my own thread but no one replied…)

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