• Resolved areach

    (@areach)


    The issue can be found here: 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) 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)
  • 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">
    	<?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

    (@areach)

    Thanks.

    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.