Support » Plugin: MetaSlider » Don’t know where to insert shortcode

  • Resolved areach


    The issue can be found here:
    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 ( 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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor kbatdorf


    Hi @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">
    		if (!is_front_page()) {
    		} else {
    			echo do_shortcode('[metaslider id="5466"]');

    Let me know if that helps.


    Plugin Contributor kbatdorf


    Hi @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.