- Posts: 150
- Thank you received: 5
where to edit the "Register (Individual)" button?
- thepiston
- Topic Author
- Offline
- Premium Member
-
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
When CSS parent selectors become widely adopted, this will become the easy way of targeting the button
But for now, if you need to target the <a> on the actual button itself, then you will need to edit core code. As you can see in my above screenshot, the translation tag for this button's text is "EB_REGISTER_INDIVIDUAL", so we just need to search the component for all uses of that tag (you'll need to modify each location in each file). Here's the list:
Find the EB_REGISTER_INDIVIDUAL in each file, and add your class into the existing class="btn" that you will see on the same line as the EB_REGISTER_INDIVIDUAL.
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Please Log in or Create an account to join the conversation.
- thepiston
- Topic Author
- Offline
- Premium Member
-
- Posts: 150
- Thank you received: 5
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
Edit the [strike]5[/strike] 4 files listed in my (revised) screenshot and look for the EB_REGISTER_INDIVIDUAL tag, and add your class into the class="btn" that you will see near each EB_REGISTER_INDIVIDUAL,thepiston wrote: yep, I need to add a class to the a tag
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Please Log in or Create an account to join the conversation.
- thepiston
- Topic Author
- Offline
- Premium Member
-
- Posts: 150
- Thank you received: 5
<a class="<?php echo $btnClass; ?>"
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
Just add your custom class here <a class="<?php echo $btnClass; ?> YOUR_CLASS" (a space after the ?>, and before the closing ".
I can do some digging to see when the $btnClass variable is defined if you need to change ALL buttons to your new class (or @Tuan probably knows exactly where and can tell you as soon as he sees this thread).
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
Tuan
Please Log in or Create an account to join the conversation.
- thepiston
- Topic Author
- Offline
- Premium Member
-
- Posts: 150
- Thank you received: 5
Tuan, I looked in that file but do not see the $btnClass variableTuan Pham Ngoc wrote: Look at the file components/com_eventbooking/helper/bootstrap.php, you should see the mapping and can change it to meet your need
Tuan
Can we have that as a Global Configuration variable so we can have the same look of button across our website?
Thanks
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
You will need to take a look at what your site applies to your buttons and introduce a .btn class either as part of your site's template css or in EB's /media/com_eventbooking/assets/css/custom.css file. If you post a link to your site (preferably a page where I can see an example of one of your site's styled buttons), I can help guide you further
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
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.