I would like to customize a Menu module. I want to add a default CSS class to a Joomla 'my_template' to render all link menu items with a default class (<a class="link_menu"...).

I know that it is accomplished via menu item edit advanced tab options to adding a css class to a particular menu item. But i would like to add this class automatically to all the items of this menu module.

How could this be solved?

enter image description here

2 Answers 2


One possible solution: Add a CSS class to your module in the Advanced Tab:

enter image description here

From here you can add for example a Menu Class Suffix, then via CSS you can add a rule to your menu items, for example if you add a class called custom-menu, the code will be:

.custom-menu li { /* your custom code */ }

I would add module or menu class suffix to the menu module itself.

Then you can write the css specifically for that menu module type, applying the rules to every menu item in it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.