Jump to content

Topic on Project:Support desk

Skinning Vector: html menu

3
Tefeli3 (talkcontribs)

Hi all,

I want to add a horizontal, external menu bar above the wiki using the vector skin. (Like HOME WIKI FAQ CONTACT ...)

Which .php file do I have to edit?

Is it possible to use html there?

Can't find anything in the forums. Thank you for your help.


MediaWiki 1.24.2

PHP 5.5.24 (cgi-fcgi)

MySQL 5.5.43-0+deb7u1

88.130.124.98 (talkcontribs)

Hi!

First you could create an own skin with links in it the way you like. If you ask me, only to add a few links, this is overkill.

The main skin file is skins/Vector/VectorTemplate.php. This file contains the HTML structure and you can edit it. Note however that this file will be overwritten during MediaWiki upgrades - your changes will then be lost.

Therefore it might be better to use a hook to put your links somewhere in the page. You could for example add them to the horizontal top menu with "Create account", "Log in" and so on. This should be possible rather easily and it won't be overwritten when you do an upgrade.

George Orwell III (talkcontribs)

It sure seems possible imho; I managed to come up with a gadget that converts the sidebar menus into a horizontal list of menus along the top for example.

Reply to "Skinning Vector: html menu"