| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Home page without left or right side bar | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Here's my problem.
This pertains to the home page and static pages. How can I cause the home page to not show the left and right side bars? I was able to hide the categories using an if statment, but then they don't show up on the static pages. I want to lay out the home page completely different than the rest of the site.
__________________
Joe Holley 4.2 |
|||||||
#2
|
|||||||
|
|||||||
![]() This is the correct code to use if you want something to show only on the home page:
{if $main eq "catalog" and $current_category.category eq ""}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() That's what I am using to show the home page content, but it doesn't hide the side bars.
__________________
Joe Holley 4.2 |
|||||||
#4
|
|||||||
|
|||||||
![]() {if $main eq "catalog" and $current_category.category eq ""}
{else} sidebar code {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() I thkn what you want is this.
{if $main ne "catalog" and $current_category.category eq ""} change the eq to ne and wrap the content you don't want on the home page with the above if statement
__________________
xcart 5.1.2 |
|||||||||
#6
|
|||||||
|
|||||||
![]() OK, I used this to not show the side bars on the home page.
{if $current_category.category ne ""} But, they don't show on static pages now.
__________________
Joe Holley 4.2 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() you have to use this and exactly this
{if $main ne "catalog" and $current_category.category eq ""} sidebar content {/if} not what you have {if $current_category.category ne ""} very different.
__________________
xcart 5.1.2 |
|||||||||
#8
|
|||||||
|
|||||||
![]() That hides them all the time, not just on the home page.
What I used, hides them, but I can't get them to show up on static pages.
__________________
Joe Holley 4.2 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() well it didn't hide them on my static pages.
__________________
xcart 5.1.2 |
|||||||||
#10
|
|||||||
|
|||||||
![]() All I can go by is what happens when I use it.
When I put the exact code you said to use, it hides the left side bar all the time.
__________________
Joe Holley 4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|