WordPress.org

Ready to get started?Download WordPress

Forums

WP Parallax Content Slider
[resolved] Display on homepage only? (8 posts)

  1. onyudo
    Member
    Posted 1 year ago #

    hello, noob here...

    i'm having no success getting the slideshow to only show on the homepage of my theme.

    currently the theme i am using has a page called Home set as the frontpage, and i do not have a home.php file (making a home.php file would open up several other cans of worms).

    any ideas would be appreciated!

    cheers!

    http://wordpress.org/extend/plugins/wp-parallax-content-slider/

  2. debendra
    Member
    Posted 1 year ago #

    <?php if(is_front_page()) {?>
    your slider div here
    <?php } ?>

  3. wp-maverick
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, can you tell us what theme you're using?

  4. onyudo
    Member
    Posted 1 year ago #

    thanks debendra! i'll give that a shot in a few minutes.... i was trying to integrate:

    if (is_home())

    into the if (function_exists) statement provided in the plugin instructions to no avail.

    wp-maverick: i am using the Good Space theme (http://themeforest.net/item/good-space-responsive-minimal-wp-theme-/2278615?WT.ac=search_thumb&WT.seg_1=search_thumb&WT.z_author=GoodLayers)

  5. onyudo
    Member
    Posted 1 year ago #

    thanks so much debendra! your suggestion got me on the right track.

    basically i had to do this:

    if (is_front_page())
    { if ( function_exists( 'get_wp_parallax_content_slider' ) ) { get_wp_parallax_content_slider(); } }
    else { normal theme slider code here }
  6. debendra
    Member
    Posted 1 year ago #

    glad that it helped you :)

  7. e-ditora
    Member
    Posted 1 year ago #

    Hi everybody!
    I'd like to know WHERE this php condition code, posted by dabendra, must be pasted. It must to be placed at HEADER.php, same place where is my slider code, or is it a FUNTION.php code?
    I have a VSlider running in my Twenty Twelve template and I'd like to dyspaly it im my HOMEPAGE only.
    thanks a lot!

  8. e-ditora
    Member
    Posted 1 year ago #

    I've got it watching a couple TUTOS and puting my shit together:

    <?php if(is_front_page()) {?>
    vslider ('header'); //VSLIDER
    <?php } ?>

    Just like that!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags