Joomla tutorials

How to make a simple horizontal menu in Joomla 2.5

горизонтальное меню

Today we will look at the useful function in Joomla, how to create a horizontal menu from an existing one created previously.
горизонтальное меню в Joomla 2.5

Came across this feature in the new version of Joomla 2.5 that when you create an additional menu on the website, it is by default displayed in a vertical manner or list. To correct this situation, you need to first determine what files we need.
In previous versions such as Joomla 1.5 you can choose how it will be your menu, here you will have to edit the code manually to achieve an acceptable result.
So, go to module Manager and create new menu module.
There are looking for such parameter as “the class Suffix menu” and set the value, for example, _gor. That will mean horizontal.
The default menu is vertical list
and for displaying on the project meets the plugin CSS file code. Accordingly, we need to find the style file (usually located in the templates folder: /templates/Vassallo/css).
For example, in many templates this (/templates/Vassallo/template.css).
Opening, copying to a hard disk file with the styles, and at the bottom write:
.menu_gor li {display:inline;]
This action will make our menu horizontal.
It should be noted that if you want a specific menu style, it is, of course, we must also prescribe, as the above operation result menu in a horizontal position with the condition that you have a standard display styles menu.
Removing from the menu suffix _gor, you can easily return the menu to its original value.