Customizr Revolution Slider on homepage only
-
Hi there!
Thank you for creating such an amazing theme with awesome support. I try very hard to read through all the forums to get my answers. This is the first time I’ve had to post.
Here’s my issue.
I am running Customizr Pro and have added the extra header widget. If I embed slider revolution in the extra header widget it works beautifully. Problem is I want to be able to use different sliders on every page. I’m trying to get the slider only to display on the home page. I can use the customizr slider for the other pages. I’ve researched and found the following codes:
// Add some text after the header
add_action( ‘__after_header’ , ‘add_promotional_text’ );
function add_promotional_text() {// If we’re not on the home page, do nothing
if ( !is_front_page() )
return;// Echo the html
echo “<div>Special offer! June only: Free chocolate for everyone!</div>”;
}OR:
<?php if ( is_home() ) { ?>
<div class=”headerslider”> <?php echo do_shortcode(‘[rev_slider slider2]’); ?></div>
<?php } ?>
I haven’t been able to get anything to work. I’m knee-deep in design at the following site: https://new.connectionsvolunteercenter.org/wp/ Please excuse the mess.
Please advise.
Thank you!!!!!
- The topic ‘Customizr Revolution Slider on homepage only’ is closed to new replies.