WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Issues With Meta Slider (4 posts)

  1. hiddenhunger
    Member
    Posted 1 year ago #

    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!!!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    generally, using a conditional statement with is_home() or is_front_page() should work;
    http://codex.wordpress.org/Conditional_Tags

    example:

    <?php if( is_home() || is_front_page() ) : ?>
    whatever code is used to include the slider
    <?php endif; ?>
  3. hiddenhunger
    Member
    Posted 1 year ago #

    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?

  4. hiddenhunger
    Member
    Posted 1 year ago #

    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!!!

Topic Closed

This topic has been closed to new replies.

About this Topic