![]() |
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.
|
Re: Custom Homepage
skin/your_skin/customer/main/welcome.tpl controls home page
|
Re: Custom Homepage
Thanks.. Now, how do I remove the left bar from just the homepage?
|
Re: Custom Homepage
surround it with
{if $main eq "catalog" && $current_category.category eq ""} LEFT BAR CODE HERE {/if} |
Re: Custom Homepage
I am using 2-columns skin.. In what file would I insert the code?
|
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 "")} |
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 |
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
|
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 |
Re: Custom Homepage
It is there in one of the css files. Use Firebug (FF) to find out exactly which one
|
Re: Custom Homepage
I need more information then that.. Have you experience with eliminating the left bar and padding and margin on the homepage and cart pages?
|
Re: Custom Homepage
Yes I do. Turn speed up tools for css from admin while site is in development so you can actually see the css files/classes. You need to change the margin in this
.fancycat-page-subskin-c #center-main |
Re: Custom Homepage
If I remove the padding from .fancycat-page-subskin-c #center-main it gives me this...
http://69.175.10.138/~totalvoi/store/home.php?cat=249 |
Re: Custom Homepage
Find the class that is unique to front page only and put th emargin in there, or create a new one to apply to front page only
|
All times are GMT -8. The time now is 08:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.