Title: Don&#8217;t know where to insert shortcode
Last modified: April 21, 2019

---

# Don’t know where to insert shortcode

 *  Resolved [areach](https://wordpress.org/support/users/areach/)
 * (@areach)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dont-know-where-to-insert-shortcode/)
 * The issue can be found here: [https://baumwollarchives.com](https://baumwollarchives.com)
   
   The preview works: Yes It works with other themes: Haven’t Tried It works when
   I disable all other plugins: No Meta Slider version: Version 3.12.1
 * I’m using wordpress Twenty Seventeen Theme. I have another site with the same
   theme ([https://www.andrewreach.com](https://www.andrewreach.com)) that I use
   this plugin on and it works fine but godaddy set it up for me.
 * on this site I have my theme customizing Home Page settings for my homepage to
   display my latest posts. So I don’t have a page to insert the shortcode into.
   
   I don’t know where and how to insert the shortcode: <?php echo do_shortcode(‘[
   metaslider id=”5466″]’); ?> Need help with instructions how to do this
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdont-know-where-to-insert-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dont-know-where-to-insert-shortcode/#post-11452550)
 * Hi [@areach](https://wordpress.org/support/users/areach/)
 * You will want to edit the header/header-image.php file and replace this line:
 * <?php the_custom_header_markup(); ?>
 * But if you want it only on the homepage you need some additional logic
 *     ```
       <div class="custom-header-media">
       	<?php 
       		if (!is_front_page()) {
       			the_custom_header_markup();
       		} else {
       			echo do_shortcode('[metaslider id="5466"]');
       		}
       	?>
       </div>
       ```
   
 * Let me know if that helps.
 *  Thread Starter [areach](https://wordpress.org/support/users/areach/)
 * (@areach)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dont-know-where-to-insert-shortcode/#post-11454269)
 * Thanks.
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dont-know-where-to-insert-shortcode/#post-11455686)
 * Hi [@areach](https://wordpress.org/support/users/areach/)
 * Let me know if you have any more questions. I’ll mark this as resolved.

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

The topic ‘Don’t know where to insert shortcode’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3646237)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/dont-know-where-to-insert-shortcode/#post-11455686)
 * Status: resolved