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

Where is $page_container_class set?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-26-2011, 08:28 AM
  believein's Avatar 
believein believein is offline
 

Advanced Member
  
Join Date: May 2011
Posts: 33
 

Default Where is $page_container_class set?

Hi,

I can see in home.tpl that there is a $page_container_class which 'might' allow me to implement different styles on different pages.

Code:
<<div id="page-container"{if $page_container_class} class="{$page_container_class}"{/if}>

Where is this set though? Can I set it in the admin area somewhere?

I'd like to set a class for all the static pages to hide all the shopping related stuff when on them. Can do this?
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝
X-Cart Gold v4.4.3
Reply With Quote
  #2  
Old 05-26-2011, 08:39 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Where is $page_container_class set?

It is in either altskin.css or main.css, depending on the template used.
skin/common_files/css/main.css
skin/your-template-name/css/altskin.css.

X-cart "looks" in altskin.css first, and if it isn't there "looks" in main.css. Actually, it loads them backwards from this, but that is the easiest way to describe it.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 05-26-2011, 09:09 AM
  believein's Avatar 
believein believein is offline
 

Advanced Member
  
Join Date: May 2011
Posts: 33
 

Default Re: Where is $page_container_class set?

Thanks JWait but I think you miss understand me. Probably my fault.

Basically, I only want my shpping cart to appear on the 'shop' pages. I wanted to hide it on the 'static' pages.

I thought there would be a setting in the admin section which allow my to give the page a css class (in the body tag or something). But if there is I couldn't find it.

I have found a work around though ... adding this to home.tpl

Code:
<div id="page-container" class="{$main}">

This gives me the hook I need to call from the css file to style / hide anything on these pages differently. Sorted.
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝
X-Cart Gold v4.4.3
Reply With Quote
  #4  
Old 05-26-2011, 09:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where is $page_container_class set?

You can also use {if} statements to show/hide content:

{if $main ne "pages"}show cart{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-26-2011, 09:35 AM
  believein's Avatar 
believein believein is offline
 

Advanced Member
  
Join Date: May 2011
Posts: 33
 

Default Re: Where is $page_container_class set?

Ah fantastic! thank you.
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝
X-Cart Gold v4.4.3
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 04:10 AM.

   

 
X-Cart forums © 2001-2020