| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to hide a div block on all pages except home page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to hide a div block on all pages except home page
Hi,
I want to hide a block on all pages except homepage. The code will be something like {if:node.name="#home#"} <div> Hi </div> {else:} <div> Test </div> {end:} Can someone please help. Thanks in advance. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: How to hide a div block on all pages except home page
Depends on where this shows. If you need it in the body of the page just include it in skin1/customer/main/welcome.tpl
If it's in the head section you can use {if $main eq "catalog" and $current_category.category eq ""}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: How to hide a div block on all pages except home page
I am sorry to mention that I am using x-cart 5 version. This code only work on older version of x-cart.
|
|||||||
#4
|
|||||||||
|
|||||||||
Re: How to hide a div block on all pages except home page
Oh sorry. I saw 4.1 in your signature and thought you are using XC4
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
Re: How to hide a div block on all pages except home page
any solution for xcart5 ?
|
|||||||
#6
|
|||||||||
|
|||||||||
Re: How to hide a div block on all pages except home page
Hi!
Similar task was covered by webinar: http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(CustomSkinsandWebmasterKitmodulesintro)-2.HowcanIwrapthe<divid="content">onhomepageinto<di vid="homepage">? Please check out the article and let me know if it helps. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|