Site icon Catch Themes

replace featured slider with featured image/video

Hi, I found the following code in the forum for another theme for replacing the slider with an embedded video. Since then I have realized what I would really like to do is to replace the slider with 'featured image.' The site I am working on needs to have different banners on different pages, and they want a video in the banner space on the About page, instead of the Home page. If the featured image can replace the slider I should be able to use the Featured Video Plus plugin to handle the rest. I realize I will need to create a child theme to do this. What do I need to add to replace the slider with either the featured image or different images/videos on each page?
Sakin @harry: Ok for that you need to replace the previous code with the following:
function catchresponsive_featured_slider() {
	if ( is_front_page() ) : ?>
	<section id="feature-slider">
		<div class="wrapper hentry">
				Add in Video here 
		</div><!-- .wrapper -->
	</section><!-- #feature-slider -->
	<?php endif;
}
Then add the following css in your child theme style.css #feature-slider .hentry { margin: 0; }
Also, please confirm that in the pro version it will be possible to choose whether each page will have a sidebar or not. If that isn't an option then I will need to switch themes. Thank you in advance
Exit mobile version