Jump to content
Sign in to follow this  
neticpro

Carousel fullwidth (no fullwidth)

Recommended Posts

neticpro

Thanks for you answer but this block code is already present in the template file. Here it is :

<?php
	
		global $pagelines_ID;
	
		if(is_page_template('page-fullwidth.php') || is_page_template('page-fullhighlight.php') || is_page_template('page-carousel-full')) $full_width_page = true;
		else $full_width_page = false;
	
		if(is_page_template('page-carousel.php') || is_page_template('page-carousel-full.php')) $carousel_page = true;
		else $carousel_page = false;
	
		if(VPRO && (is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || (is_home() && pagelines('featureblog')))) $featureslide_template = true;
		else $featureslide_template = false;
	
		if(VPRO && (is_page_template('page-feature.php') || m_pagelines('featureboxes', $pagelines_ID))) $fboxes_template = true;
		else $fboxes_template = false;
	
	?>
	
	<?php if($featureslide_template) get_template_part('pro/template_feature'); ?>
	<?php if($carousel_page) get_template_part('pro/template_carousel');?>
	<div id="contentcontainer" class="content fix">
		<div id="contentborder">
	
			<?php if(!is_page_template('page-highlight.php') && !is_404()) get_template_part('library/_sub_head');?>
	
			<?php if(is_page_template('page-fullhighlight.php')) get_template_part ('pro/template_highlight'); ?>
	
			<?php if($fboxes_template || is_home()) include(PRO . '/template_fboxes.php');?>
	
				<div id="maincontent" <?php if($full_width_page):?>class="fullwidth"<?php endif;?> >
					<?php if(is_page_template('page-highlight.php')):?>
						<?php get_template_part('pro/template_highlight');?>
						<?php get_template_part('library/_sub_head');?>
					<?php endif;?>
	
					<?php get_template_part ('library/_posts'); ?>
				</div>
	
				<?php if(!$full_width_page) get_sidebar();?>
	
			<?php get_template_part ('library/_contentfooter'); ?>
			<div class="clear"></div>
		</div>
	</div>

Forgive me if I'm wrong, but this file is provided in the WhouteHouse theme natively, isn't it ?

Share this post


Link to post
Share on other sites
cmunns

Yes it is, but I was saying you have to add your page template to that first conditional statement..it cut off what I added though: ` if(is_page_template('page-fullwidth.php') || is_page_template('page-fullhighlight.php') || is_page_template('page-carousel-full')) $full_width_page = true; else $full_width_page = false; ` If you added a custom template it will need to be added to this conditional. Altough I guess I'm unsure why you'd create a fullwidth carousel template if one already exists. What is the name of your template as it appears in the file?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×