Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Magento Forum

   
Does unsetChild only remove the content of the block? 
 
danpowered
Jr. Member
 
Total Posts:  9
Joined:  2008-05-01
 

I’m trying to remove the header (i need to do so for some ajax content), but if i try using :

<remove name="header"/>
<
remove name="menu"/>

or

<reference name="root">
  <
action method="unsetChild"><name>header</name></action>
  <
action method="unsetChild"><name>menu</name></action>
</
reference>

and i look at the code generated, the header div is still there, but empty.  Moreover, its still showing on the page as a blue bar on top, even if its empty.

How can i completely remove parts of the page, including the block itself?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
laurent
Member
 
Total Posts:  47
Joined:  2007-08-31
Paris, France
 

I think it’s a design question…

Maybe, just move your header div from your page template into your header template?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
32156 users|374 users currently online|72054 forum posts