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)
-   -   Light & Lucid 3-column layout? OK but I want NO SIDEBARS on my 'Static Page' content (https://forum.x-cart.com/showthread.php?t=65848)

donavichi 01-14-2013 08:46 AM

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 :)


All times are GMT -8. The time now is 04:09 PM.

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