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 make storefront page width 100% (https://forum.x-cart.com/showthread.php?t=68254)

xp-group 12-03-2013 09:00 AM

how to make storefront page width 100%
 
How to make width of storefront page only 100% without sidebar, but leave on other pages< please help!!!

I hide left side bar on frontpage only

totaltec 12-03-2013 09:45 AM

Re: how to make storefront page width 100%
 
Your template is going to matter a lot with this. best to explain what template you are using.

Here is the code you want to use:
{if $main eq "catalog" and $current_category.category eq ""}
Do nothing
{else}
Show left bar
{/if}

The left bar is called in /common_files/customer/content.tpl

Now there is going to be CSS as well involved

xp-group 12-03-2013 10:46 PM

Re: how to make storefront page width 100%
 
Quote:

Originally Posted by totaltec
Your template is going to matter a lot with this. best to explain what template you are using.

Here is the code you want to use:
{if $main eq "catalog" and $current_category.category eq ""}
Do nothing
{else}
Show left bar
{/if}

The left bar is called in /common_files/customer/content.tpl

Now there is going to be CSS as well involved


Thanks, but I cloned template Books & Magazines.
website http://kupipalto.ru
I hide left sidebar on frontpage
Now I need to stretch content on page width,
When I change CSS it applies on all pages,
not only frontpage
It suppose to look like http://xp-group.ru

qualiteam 12-04-2013 09:09 PM

Re: how to make storefront page width 100%
 
Hi!

There is a CSS rule that sets the 960px width for the #page-container element on your website.

So, you need to tweak the page template so that it adds a special CSS class to the body tag (for example, "frontpage") when it is the front page. And then add an extra CSS rule that will override the width for ".frontpage #page-template" element.


All times are GMT -8. The time now is 01:49 AM.

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