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

  1. onyudo
    Posted 4 years 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!



  2. debendra
    Posted 4 years ago #

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

  3. wp-maverick
    Plugin Author

    Posted 4 years ago #

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

  4. onyudo
    Posted 4 years 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
    Posted 4 years 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
    Posted 3 years ago #

    glad that it helped you :)

  7. e-ditora
    Posted 3 years 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
    Posted 3 years 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

  • WP Parallax Content Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic