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)
-   -   conditional left column (https://forum.x-cart.com/showthread.php?t=53773)

Shamun 05-23-2010 04:29 PM

Re: conditional left column
 
For that, you'll have to mess with some other css.
Each template can be different. I checked out the demo on the X-cart site (which is indicated in your URL bar) but could not get it to show as you have it... Though, looking at the CSS there is a 250px margin to the left which pushes it to the right.

Line 288 in the CSS.

FTI 05-23-2010 04:34 PM

Re: conditional left column
 
Well, the problem is that I want to do this only for the product page, not for the whole container. Is it possible in smarty yo assign a custom class to an element and make in not inside the <div id="center-main">. Sorry for the bad example, I had some server problems. This is my site:

http://www.galson.bg/Hunting-Knife-w-sheath.html

Shamun 05-23-2010 04:39 PM

Re: conditional left column
 
for that, you can actually put smarty in the div tags like so:

<div class="{if $main neq 'product'}center-main{else}center-mainP{/if}">

Then make a custom class for center-mainP

FTI 05-23-2010 04:54 PM

Re: conditional left column
 
Thank you so much, Sir. This will do the job :)


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

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