| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Where is $page_container_class set? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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:
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
#3
|
|||||||||
|
|||||||||
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:
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 |
|||||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|