X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to hide left sidebar on front page (https://forum.x-cart.com/showthread.php?t=67535)

xp-group 08-13-2013 01:08 AM

How to hide left sidebar on front page
 
Template books and magazines. I want to hide left menu on front page only. Any one have done it before. Thanks in advance
http://kupipalto.ru

carpeperdiem 08-13-2013 06:52 AM

Re: How to hide left sidebar on front page
 
Welcome to xcart!

Webmaster mode will be your friend for these types of questions... please read up on webmaster mode and then you'll discover that...

the left menu is placed using the include:

file:
/skin/books_and_magazines/customer/content.tpl
Code:

<div id="left-bar">{include file="customer/left_bar.tpl"}</div>

as you can see, there is an IF statement surrounding the include:

Code:

{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout'}
        <div id="left-bar">{include file="customer/left_bar.tpl"}</div>
{/if}


IF $main is not 'cart'
OR cart is empty
and $main is not checkout, then show the left-bar

you will want to add an if to exclude the home page

read all about it here:
http://forum.x-cart.com/showthread.php?t=67270

This forum has every answer you probably will ask -- just have to learn how to ask (search). Google search is also your friend
(site:http://forum.x-cart.com)

Good luck,

J


All times are GMT -8. The time now is 07:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.