Home › Forums › Calendar Products › Events Calendar PRO › Changing Featured Event Colors?
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by Drew.
-
AuthorPosts
-
December 26, 2017 at 8:48 am #1412859DrewParticipant
I am using the ‘Featured’ option on events just to mark which ones should appear in the “Featured Events” sidebar widget. I don’t really want them to look any different. I’m having a tough time overriding the styling – I keep getting white text on a #0EA0D7 background, regardless of the colors I set in the settings panel.
Before I write a bunch of custom CSS !important rules to get around it, is there a recommended method for re-styling the featured event blocks, or a way to edit the .php to simply remove the ‘featured’ classes from these elements?
December 26, 2017 at 9:51 am #1412908CrisoforoKeymasterHey Drew,
Thank you for reaching out to us!
If you can let us know what specifc type of widget is I can give you a better answers, in the meantime I will provide you with some useful links and how to remove the class tribe-event-featured class.
- In order to change or style any widget we have a useful guide, thank you can follow along as it provide steps in how to change styles on widgets.
- You can use the following snippet of code to remove the class tribe-event-featured, make sure to place this code on your functions.php file on your active theme.
// File: functions.php
function tribe_events_event_classes_remove_featured( $classes ) {
$key = array_search( 'tribe-event-featured', $classes );
if ( false !== $key ) {
unset( $classes[ $key ] );
}
return $classes;
}add_filter( 'tribe_events_event_classes', 'tribe_events_event_classes_remove_featured' );
Let me know if you have any other questions or if you want to provide me more details on the theme you want to update I can provide you more details steps.
Thanks and happy holidays,
CrisoforoDecember 26, 2017 at 10:04 am #1412921DrewParticipantHey there! Thanks for the quick reply during the holiday week. 😉
I’ve added that new function to my functions.php, but that doesn’t seem to be doing the job. I’ve attached a couple of screenshots. Basically I am trying to get rid of that blue background and white text so that the event looks like any other event. I’m using the Photo view on the homepage and the ‘Events List’ widget in the sidebar.
December 26, 2017 at 10:06 am #1412927DrewParticipantScratch that – I think I figured out my mistake. That function should get me where I need to go, thanks!
December 26, 2017 at 10:23 am #1412941CrisoforoKeymasterAwesome. I’m going to close the ticket and feel free to reach again if you have more questions.
-
AuthorPosts
- The topic ‘Changing Featured Event Colors?’ is closed to new replies.