How to change/add links in the main site navigation bar


https://forum.kartris.com/Topic36.aspx
Print Topic | Close Window

By Adrian - Wed 16 Jun 2010

Is it possible to add/remove links in the main navigation of the shop, such as Home, Products, contact etc.
By Neil - Wed 16 Jun 2010
Hi Adrian,

You can edit these links in web_menu.sitemap in the root of your site.

By thedrumdoctor - Wed 30 Mar 2011
I tried to do this with the web_menu.sitemap file in the root of my installation and it didn't work.

I even deleted that file completely and it showed no difference whatsover to the top navigation menu. (I also restored it after!)

I am working with a custom theme but I have't deleted anything that would appear to affect the top menu.

I assume that the code in the Master Page:

<user:NavigationMenu ID="UC_NavigationMenu" runat="server" />

Generates the top navigation menu.

I can't find anything in the backend or the user manual to suggest how to control a level for the number of nested lists that are generated in the top navigation menu.

I really need to do this as I want switch off the nested lists that are generated in the top navigation menu at the moment.
By Mohammad - Wed 30 Mar 2011
What Neil said is correct, but after changing/adding links in web_menu.sitemap you need to restart your application (IIS) to let the site take effect from the sitemap changes.
By thedrumdoctor - Wed 30 Mar 2011
Aha...Unfortunately, I don't think that's going to work on my shared hosting package.
By Mohammad - Wed 30 Mar 2011
Replacing the web.config file will do an automatic restart for the application.

So in your case, you can do that through FTP, just copy your web.config somewhere in your local machine, then copy it back to the hosting folder, it will ask to replace ... choose yes.
By thedrumdoctor - Wed 30 Mar 2011
Ha!

Worked like a dream, Thanks!