WordPress.org

Ready to get started?Download WordPress

Forums

Easing Slider "Lite"
[resolved] enable slider on front page only (7 posts)

  1. wahidsadiq
    Member
    Posted 1 year ago #

    hello, i am using the Easing Slider "Lite" plugin and i like it but cant enable slider only for front page how can i keep slider only in front page ? help please.

    http://wordpress.org/extend/plugins/easing-slider/

  2. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @wahidsadiq, try this code in the appropriate theme file:

    <?php
    if ( is_home() && function_exists( 'easingsliderlite' ) ) {
        easingsliderlite();
    }
    ?>

    That should do the trick :)

  3. devdjny
    Member
    Posted 1 year ago #

    Matthew - Can you narrow that down a little?

    Re: the appropriate theme file.

  4. wahidsadiq
    Member
    Posted 1 year ago #

    thanks a lot Matthew, but its working for post page not working for front page.

  5. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    @wahidsadiq, Try this instead:

    <?php
    if ( is_front_page() && function_exists( 'easingsliderlite' ) ) {
        easingsliderlite();
    }
    ?>

    @devgjny, unfortunately I can't do that. Every theme differs and it really depends on your setup and what file is being used for the front page. Generally, index.php, home.php or front-page.php are the appropriate files, but it can vary greatly.

  6. wahidsadiq
    Member
    Posted 1 year ago #

    @Matthew,
    wow this is really gr8, it worked as i wanted, thankyou ...:)

  7. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Great! Happy to help :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic