Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: 3.7.0 And The "Register", "Attendees" & "Closed" Buttons

3.7.0 And The "Register", "Attendees" & "Closed" Buttons 6 years 11 months ago #26825

  • shootfast
  • shootfast's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 169
  • Thank you received: 1
In the previous version of DT Register the "Register", "Attendees" and "Closed" buttons were images and I had uploaded different image colours so that the Register button was green, the Attendees button was blue, and the Closed button was red.

With the update to 3.7.0 and going from images to css is it possible to change the colours for each "button"? I've played with the css file a bit but it doesn't appear that we can have independent colours for each button?

Thanks for the insight/help,

S

Please Log in or Create an account to join the conversation.

3.7.0 And The "Register", "Attendees" & "Closed" Buttons 6 years 11 months ago #26828

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
The buttons all share a global color, just like they always have. However, I just modified the package as we had to update for a couple quick fixes to 3.2.0a (which you can now download) and you can customize each button via CSS separately now.

The main.css file has elements like this:
span.event_button.red {
    background: #ff0000;
    color: #fff;
}
Now each button has an additional class name that corresponds to its function. You have these class names: register, full, closed, details, attendees. So you could customize all Attendees buttons despite your color config selection like:
span.event_button.attendees {
    background: yellow;
    color: #000;
}

Hope this helps!

Please Log in or Create an account to join the conversation.

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .

3.7.0 And The "Register", "Attendees" & "Closed" Buttons 6 years 11 months ago #26832

  • shootfast
  • shootfast's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 169
  • Thank you received: 1
Hi Nathan, thank you very much for this!!

Being able to customize the colour and hover colour of all the buttons is a great improvement. Thanks for adding it so quickly to 3.2.0a :)

Please Log in or Create an account to join the conversation.

3.7.0 And The "Register", "Attendees" & "Closed" Buttons 6 years 11 months ago #26833

  • shootfast
  • shootfast's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 169
  • Thank you received: 1
Nathan, should we assume that the main.css file will be overwritten in future DT Register updates and our css modifications will need to be re-implemented?

Please Log in or Create an account to join the conversation.

3.7.0 And The "Register", "Attendees" & "Closed" Buttons 6 years 11 months ago #26834

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
You're welcome. :)

Yes, the main.css file has always been and will always be open for editing. This is noted in the readme file that the file is overwritten in updates and to back up your file if you have edited it.

Something you can consider is taking the items you modify and copy / pasting them into your template's CSS file. That may help you not have to re-apply those updates. If the template CSS doesn't override the main.css file, then you could always add "!important" to those items. Just something to consider.
The following user(s) said Thank You: shootfast

Please Log in or Create an account to join the conversation.

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .
  • Page:
  • 1
Time to create page: 0.145 seconds