- Posts: 19
- Thank you received: 0
Badge for modules
- bfrylinck
- Topic Author
- Offline
- New Member
-
Less
More
2 years 6 months ago - 2 years 6 months ago #154100
by bfrylinck
Badge for modules was created by bfrylinck
I would like to display a badge on my Events Booking modules e.g. Upcoming Events with a badge that reads "Members Only"
I know that there is a badge class in Boostrap, but I'm not sure how to apply this to the module.
Joomla 3 latest and Helix 3 template.
Thank you
I know that there is a badge class in Boostrap, but I'm not sure how to apply this to the module.
Joomla 3 latest and Helix 3 template.
Thank you
Last edit: 2 years 6 months ago by bfrylinck.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #154104
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Badge for modules
Hello
Not sure where you want to display this badge? Could you please make a screenshot showing us the change you need so that I can understand and answer your question further?
Regards,
Tuan
Not sure where you want to display this badge? Could you please make a screenshot showing us the change you need so that I can understand and answer your question further?
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bfrylinck
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
2 years 6 months ago #154106
by bfrylinck
Replied by bfrylinck on topic Badge for modules
Hi Tuan
I would like the Calendar module heading to look like one of the heading examples here: getbootstrap.com/docs/5.0/components/badge/
i.e. the following CSS to be applied:
<h3>Events Calendar <span class="badge bg-secondary">Members Only</span></h3>
Thank you
I would like the Calendar module heading to look like one of the heading examples here: getbootstrap.com/docs/5.0/components/badge/
i.e. the following CSS to be applied:
<h3>Events Calendar <span class="badge bg-secondary">Members Only</span></h3>
Thank you
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #154118
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Badge for modules
Hello
The module title is rendered by Joomla, so I'm afraid of it could not be changed. However, you can try this workaround to see if it works :
1. Edit the module, choose a Module Style with no Title displayed
2. Then also in that module, there is a parameter called Pre-Text. Enter the HTML code controls how title will be displayed as you want:
<h3>Events Calendar <span class="badge bg-secondary">Members Only</span></h3>
Then check to see if it works
Regards,
Tuan
The module title is rendered by Joomla, so I'm afraid of it could not be changed. However, you can try this workaround to see if it works :
1. Edit the module, choose a Module Style with no Title displayed
2. Then also in that module, there is a parameter called Pre-Text. Enter the HTML code controls how title will be displayed as you want:
<h3>Events Calendar <span class="badge bg-secondary">Members Only</span></h3>
Then check to see if it works
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bfrylinck
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
2 years 6 months ago - 2 years 6 months ago #154140
by bfrylinck
Replied by bfrylinck on topic Badge for modules
Thank you so much Tuan, this works perfectly. Also works for other types of modules - add before text if there is no pre-text field.
Last edit: 2 years 6 months ago by bfrylinck.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #154141
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Badge for modules
Great. Happy to hear that

Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.