Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Light & Lucid 3-column layout? OK but I want NO SIDEBARS on my 'Static Page' content

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-14-2013, 08:46 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default Light & Lucid 3-column layout? OK but I want NO SIDEBARS on my 'Static Page' content

Q: How do I modify X-Cart so that I can have full-width pages for 'Static Pages' and left & right columns for store pages in X-Cart?

Open 'skin/common_files/customer/content.tpl'

Find:
Code:
<div id="center-main">

Replace with:

Code:
<div {if $page_data.pageid eq ""}id="center-main" {else}id="center-main-pages"{/if}>

Open 'skin/common_files/css/main.css'

Find:
Code:
#center-main { margin: 0 176px; position: relative; overflow: hidden; }

Below that, add:
Code:
#center-main-pages { margin: 0; position: relative; overflow: hidden; }

Save/upload your files.

Now when you navigate to a 'store' page you'll have the default 3-column light & lucid layout, but on 'static pages' you'll have a full-width layout.

Neato
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:07 AM.

   

 
X-Cart forums © 2001-2020