It seems I missed a CSS selector change in The Events Calendar at some time.
You can test with my develop branch and see if I’ve gotten it fixed.
https://github.com/afragen/the-events-calendar-category-colors/archive/develop.zip
Perfect! That works a treat 🙂
Thanks for your quick response and help.
Hi Andy,
I don’t understand how to ‘… test with my develop branch and see if I’ve gotten it fixed.’
I recently purchased The Events Calendar Pro, and added this Category Colors plugin. Colors work great in the Month View. In the list view, the background color displays fine, but the border color does not display:
http://37.60.231.189/~artaweb/events/list/
I’m not certain how to resolve this and would appreciate any thoughts.
Sincerely,
Paul
Hey Paul!
A quick look shows a conflict with the Avia Merged Styles stylesheet. It seems there’s a border-color style for #top .main_color .tribe-events-list-event-title
Try adding the following filter to your theme’s functions.php file. I think it should work.
add_filter( 'teccc_fix_category_background_color', function( $null, $category ) {
return "#top .main_color {$category} .tribe-events-list-event-title,";
}, 10, 2 );
Make sure to add ?refresh_css
to the end of your events URL to remake the CSS.
-
This reply was modified 5 years, 6 months ago by Andy Fragen.
-
This reply was modified 5 years, 6 months ago by Andy Fragen.
Andy,
Thank you very much for the quick response!
I just now saw this, and I copied/pasted your code into the Enfold Child Theme’s functions.php file.
However, this didn’t seem to make a difference. And yes, I also added “?refresh_css” to the end of the events URL.
I’m not certain what to try next, but I think I’ll find a freelance WordPress expert to dive further into the details.
Thanks again for the response. You’ve created a great plugin!
Sincerely,
Paul
Paul,
Are you sure? It looks like it worked.
https://cl.ly/c3f032dacd92
Try opening in a private window.
Andy
Wow, it did! Fantastic!
I thought that maybe somewhere in Enfold’s Avia Layout Builder there was some kind of other conflict (this is someone who ‘semi-understands’ coding).
🙂
Maybe I’m mistaken, but it seems that Safari and Chrome are even more stingy with caching than in the past. Of course, I was going too fast last night, and ONLY was looking at the page via Safari; I didn’t even check Chrome or Firefox.
Thanks again for your help with this; this plugin has been the perfect addition for my client’s needs.
Sincerely,
Paul
Excellent Paul. If you have some time can you leave a review?
Thanks,
Andy