Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Classes added to Module Class Suffix in custom html module break in certain positions #9115
There is a bug where if you add a class to a custom html module using the Module Class Suffix box under the Advanced tab it replicates the classes entered showing it on the front end twice. Twice meaning that it adds the classes once around the container which includes the Title and a second time around the text inside the custom html module.
To duplicate this, simply add any class you want in the Module Class Suffix box for a published custom html module. Preferably a class that you can see such as a border or drop shadow. Make sure the custom html module is published in either one of the Side positions or the Footer positions such as these from the Beez3 template.
It appears to work fine if published elsewhere.
This is also not template specific as I have reproduced this using Protostar, Beez3, and several other 3rd party templates.
Original Joomla forum post for this issue can be found here:
It's the case for most modules. The reason is that this parameter is used both in the module chrome from the template and the module output itself.
I doubt we can change it without breaking something. Just write your CSS rules so it matches only one instance (eg combine your CSS rule with the other class present)