WordPress.org

Ready to get started?Download WordPress

Forums

Nivo Slider for WordPress
I want to show it only on front page (2 posts)

  1. andriansah
    Member
    Posted 1 year ago #

    Hi

    I want to show the slider only on certain page? how can I do it?

    I try to put code like this
    <?php if ( is_page( 4 ) || function_exists('nivoslider4wp_show') ) { nivoslider4wp_show(); } ?>

    on header.php but the slider still show on every page.

    Any tips?

    Thanks

    http://wordpress.org/extend/plugins/nivo-slider-for-wordpress/

  2. Matcha Labs
    Member
    Posted 1 year ago #

    Try:

    <?php if ( is_page( 4 ) && function_exists('nivoslider4wp_show') ) { nivoslider4wp_show(); } ?>

    or, even better:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic