Support » How-To and Troubleshooting » [Resolved] Issues With Meta Slider

[Resolved] Issues With Meta Slider

  • I’m using the Vortex theme for my website and I’m using the Meta Slider plug-in! The only issue is I want it to show up ONLY on the homepage… not on every other page. I’ve used several codes in the header.php section but nothing seems to work! If anyone can tell me the solution I would appreciate it!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Michael


    Forum Moderator

    generally, using a conditional statement with is_home() or is_front_page() should work;


    <?php if( is_home() || is_front_page() ) : ?>
    whatever code is used to include the slider
    <?php endif; ?>

    Okay! I’m not too good with all this coding stuff… where would I need to put this? I know somewhere in header.php… does it matter where exactly I put it?

    Never mind! I just replaced it with where I had <?php echo do_shortcode(“[metaslider id=277]”); ?> in header.php and it worked!!!! 🙂 THANK YOU SO MUCH!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Issues With Meta Slider’ is closed to new replies.