| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Custom Homepage | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Custom Homepage
I need to make the homepage on x-cart different from the rest of the pages. I would like to keep just the header and footer, and insert my own content in the main area.
__________________
X-CART GOLD 4.4.X |
|||||||
#3
|
|||||||
|
|||||||
Re: Custom Homepage
Thanks.. Now, how do I remove the left bar from just the homepage?
__________________
X-CART GOLD 4.4.X |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Custom Homepage
surround it with
{if $main eq "catalog" && $current_category.category eq ""} LEFT BAR CODE HERE {/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||
|
|||||||
Re: Custom Homepage
I am using 2-columns skin.. In what file would I insert the code?
__________________
X-CART GOLD 4.4.X |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Custom Homepage
That is in common_files/customer/content.tpl. You would want to copy that to the same place in 2-columns then make the changes there. There is already code surrounding the left-bar to prevent it from appearing in the cart and checkout. I think you'd want to add a "not" around the above code so you'd end up with something like this:
{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout' and not ($main eq "catalog" and $current_category.category eq "")} |
|||||||||
|
#7
|
|||||||
|
|||||||
Re: Custom Homepage
We are getting closer.. Thanks!!
Now, how do I eliminate the space where the left bar was? http://69.175.10.138/~totalvoi/store/home.php
__________________
X-CART GOLD 4.4.X |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Custom Homepage
It's all in the css classes. There are probably margins/paddings you need to eliminate so the center part takes all the space
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#9
|
|||||||
|
|||||||
Re: Custom Homepage
I can't find it anywhere in the altskin.css or main.css. The margin on the left of center is exactly 250px. I went through both css files and changed anything that said 250px, nothing changed.
Does anyone have any ideas? The cart.php page is also having the same issues? http://69.175.10.138/~totalvoi/store/cart.php
__________________
X-CART GOLD 4.4.X |
|||||||
#10
|
|||||||||
|
|||||||||
Re: Custom Homepage
It is there in one of the css files. Use Firebug (FF) to find out exactly which one
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|