![]() |
How to have no left.tpl on home and product detail pages?
How can I get the left_bar.tpl to not show up on homepage and product detail page. It probably involves integrating script variables into the template using Smarty expressions on skin/common_files/customer/home.tpl and skin/2-columns/customer/main/product_detail.tpl
And I am just not that good with them. |
Re: How to have no left.tpl on home and product detail pages?
Code:
{*<div id="left-bar"> comment out as above in content.tpl. Use webmaster mode to find the correct one. You will need to adjust the css accordingly. If you use Safari with developer tools its very easy to see what you need to change. One bit at a time, mind you, as you will end up in a right old mess. |
Re: How to have no left.tpl on home and product detail pages?
That will hide it everywhere. You need to use an {if} statement instead:
{if $main eq "catalog" and $current_category.category eq "" or $main eq "product"}{else}{include file="customer/left_bar.tpl"} {/if} |
Re: How to have no left.tpl on home and product detail pages?
balinor,
Worked great. Thank you. What would be the best way to go about getting rid of the #left-bar width 210px padding on home and product detail pages only? If I edit via css I lose it on all pages. |
Re: How to have no left.tpl on home and product detail pages?
You'd need to use the same {if} statement to give the main block (the right hand one) a different css class.
|
Re: How to have no left.tpl on home and product detail pages?
Quote:
how to do, please? |
All times are GMT -8. The time now is 07:56 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.