2

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

1

I would add module or menu class suffox 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.

0

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 */ }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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