Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

hide banner
 
HungryMinder
Jr. Member
 
Total Posts:  18
Joined:  2012-11-09
 

Hi,

I want to hide a banner from inner pages but I need to display that in home page

I have put this banner in left-col.phtml

so i tried to identify the base url using javascript.if its in base url show the banner otherwise hide it

like this

<script type="text/javascript">

if(
[removed].pathname !="/")
{
 
var ele document.getElementById("flashcontent");
ele.style.display 'none';


}
else
{
//alert(url);

}

</script>

but it doesnt work.anybody ahve an idea to do this.

Note: i dont have a home page in CMS>Pages.this is a purchased template

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top