WordPress.org

Ready to get started?Download WordPress

Forums

restricting slide show to homepage (4 posts)

  1. omkarachary
    Member
    Posted 1 year ago #

    Hi ,
    i installed some template from wordpress.I want to restrict the Slideshow for only homepage I have a good coding knowledge but less experience with coding for wordpress please help

  2. omkarachary
    Member
    Posted 1 year ago #

    The website is here http://jetracg.com

  3. LastForOne
    Member
    Posted 1 year ago #

    Hi,
    i think it's quite simple, all you have to do is find the call which is including the slider and give it an if statement example:

    <?php
    if ( is_home() ) {//is_home is a wordpress function
        // include 'slider.php';
    }
    ?>

    More info about is_home() @ Link

    Peace,
    ./LastForOne

  4. omkarachary
    Member
    Posted 1 year ago #

    i used Static front page but the Slideshow is not coming in the frontpage also

Topic Closed

This topic has been closed to new replies.

About this Topic