How to Change elements in the main navigation menu?

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
loba
Rank 0
Rank 0
Posts: 3
Joined: May 11th, 2010, 5:09 pm

How to Change elements in the main navigation menu?

Post by loba »

Hi Paul,
Thanks for this awesome skin template. I know this is a stupid question but could you please tell me how to customize your main menu? I found the function mainNavigationBox() but didn't know how to change it since I know nothing about php. Could you please give some hint? Thank you very much!
User avatar
loba
Rank 0
Rank 0
Posts: 3
Joined: May 11th, 2010, 5:09 pm

Re: How to Change elements in the main navigation menu?

Post by loba »

By now I figured out how to add elements to the main menu. I added some code as below:

<li><a href="/wk/index.php/Main_Page">Main Page</a>
<ul>
<li id=""><a href="/wk/index.php/Main_Page">Main Page Subone</a></li>
<li id=""><a href="/wk/index.php/Main_Page">Main Page Subtwo</a></li>
</ul>
</li>

But when I go to other pages, this new added element just gone, but others remain the same. There must be some function here, could you please help me? Thanks a lot!
User avatar
loba
Rank 0
Rank 0
Posts: 3
Joined: May 11th, 2010, 5:09 pm

Re: How to Change elements in the main navigation menu?

Post by loba »

Weird, it's OK now.

Just find another way to change the menu: go to MediaWiki:Sidebar and edit it.

Hope this will help others also...
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How to Change elements in the main navigation menu?

Post by Paul »

MediaWiki:Sidebar is build-in mediawiki, should always stick to it for menu.............
Post Reply