Move HeaderMenu inside Header

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Hi all,
in my website, the header main menu has to be placed inside header. I noticed that there are two seperate files controling these items, inside Modules directory:
Header.ascx
HeaderMenu.ascx

Is ti possible to remove the HeaderMenu.ascx completelly out of the system and place it's code inside Header.ascx??
13 years ago
in my website, the header main menu has to be placed inside header. I noticed that there are two seperate files controling these items, inside Modules directory:
Header.ascx
HeaderMenu.ascx
Is ti possible to remove the HeaderMenu.ascx completelly out of the system and place it's code inside Header.ascx??


Hi there mate

yes you could but u need to just be careful of the template you are using.


the templates should be using master pages - and in particular you need to look at the Root Master page

this makes a call to the Header and Headermenu controls

you would need to remove the call to the headerMenu control and then find this

<nopCommerce:Header ID="ctrlHeader" runat="server" />
            <nopCommerce:HeaderMenu ID="ctrlHeaderMenu" runat="server" />

remove HeaderMenu

and then just put all your code within Header.


although to be honest you could still do what you wanted to do whilst still having the two elements
13 years ago
thank you for your help
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.