Keyword

Calendar class change / override

  • mjmartino
  • mjmartino's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #173703 by mjmartino
Calendar class change / override was created by mjmartino
Hi Fortis
I have a problem with 2 calendars on site.
Form calendar interference k2 module calendar.
How a can change / override class module
<table class="calendar">
Change calendar to calendar-k2
Do you have some simple solution?

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

More
4 years 4 months ago #173710 by JoomlaWorks
Replied by JoomlaWorks on topic Calendar class change / override
If it's a CSS issue, use a module class suffix and then target CSS differently to override styling.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • mjmartino
  • mjmartino's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #173716 by mjmartino
Replied by mjmartino on topic Calendar class change / override
This is difficult situation because i must using two calendar.
First using !important
Okay i edit original css to resolve this problem.

Thanks.

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

More
4 years 4 months ago #173717 by JoomlaWorks
Replied by JoomlaWorks on topic Calendar class change / override
It's not difficult if it's about CSS specifically. Using a CSS class suffix in the module makes things easier (you don't even need to override the "calendar.php" override of the K2 Tools module). Then it's all a matter of specificity in CSS.
.myNewClassSuffix table.calendar {...}

We do this already in the K2 demo site: jmp.sh/36eevPz

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • mjmartino
  • mjmartino's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #173718 by mjmartino
Replied by mjmartino on topic Calendar class change / override
You have right!
I try override for .myNewClassSuffix table not added calendar
Thank you.
Ps. yes i using override K2 Tools module ;)

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

More
4 years 4 months ago #173720 by JoomlaWorks
Replied by JoomlaWorks on topic Calendar class change / override
Cool :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum