
Thanks!
Code: Select all
<?php if(sizeof($breadcrumbs) > 1) { //On the homepage ?>
<div id="column_right">
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'right') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<?php } ?>
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
layout.tpl is no longer used in the latest version of opencart, so you're not going to find it...mbeerden wrote:I want to remove the right sidebar from my OC install. But i cant find the file layout.tpl
Code: Select all
<?php echo $column_right; ?>
Find the same piece of code used above and wrap an IF statement around it:itrends wrote:Hey all, could anyone provide me with the IF statement code I would need to use to selectively hide the right hand sidebar if on the homepage of the site?
Code: Select all
<?php if($showColumnRight){ echo $column_right; }?>
PM me for custom OpenCart template design and development.
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.
This is easy, leave the template files well alone, don't put any modules in the right nav bar and then set its width to 0px in the CSS (display: hidden; too if you're paranoid you might be dealing with a nub), then make the centre bar wider, its something like 740px off the top of my head for a standard 960px OpenCart store.imaginetech wrote:I'd really like to hear other members thoughts on this one.
Code: Select all
It was like that when I found it, honest!
Code: Select all
It was like that when I found it, honest!
Agreed.Qphoria wrote:I think the way it is now is still iffy, but best to keep the majority in the view area for tpl and css files
PM me for custom OpenCart template design and development.
Hi Matt,moggiex wrote:This is easy, leave the template files well alone, don't put any modules in the right nav bar and then set its width to 0px in the CSS (display: hidden; too if you're paranoid you might be dealing with a nub), then make the centre bar wider, its something like 740px off the top of my head for a standard 960px OpenCart store.imaginetech wrote:I'd really like to hear other members thoughts on this one.
Matt
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.
Ah I hear ya, the best use of this would be product pages, where you drop one or both of the side bars.imaginetech wrote: Hi Matt,
This works if the right column is not needed throughout the site. What I was talking about is when you just want a single page to not display the right column but all other pages to display the column or to extend it further 50% do and 50% don't.
This was one of the touted features of the new template system (not requiring conditional php statements to display content selectively). However I think we've just changed one set of conditional statements for another.
Code: Select all
It was like that when I found it, honest!
Users browsing this forum: No registered users and 28 guests