![]() |
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. |
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 ""} |
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.
|
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
|
Re: How to hide a div block on all pages except home page
any solution for xcart5 ?
|
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. |
All times are GMT -8. The time now is 04:18 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.