Home › Forums › Calendar Products › Events Calendar PRO › Replace events calendar stylesheet function broken with latest update
- This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago by
Edward.
-
AuthorPosts
-
September 12, 2018 at 1:20 pm #1620070
Aaron Simms
ParticipantI just updated the main and pro plugins to the latest versions and my custom stylesheet is no longer being loaded. Did something change regarding how the plugin deals with default vs custom stylesheets?
Code I’m using (and which has worked up to now):
function replace_tribe_events_calendar_stylesheet() { $styleUrl = get_template_directory_uri() . '/tribe-events/event-styles.css'; return $styleUrl; } add_filter('tribe_events_stylesheet_url', 'replace_tribe_events_calendar_stylesheet');Although my custom stylesheet is where it’s always been, it’s no longer being used at all by the events-related pages — there’s no reference to it when I inspect any of the elements on the page and instead the pages are using the site’s default stylesheet and whichever Events Calendar sheet I have selected in settings (skeleton, full, or Tribe).
-
This topic was modified 7 years, 7 months ago by
Aaron Simms.
September 12, 2018 at 3:27 pm #1620174Aaron Simms
ParticipantUpdate: I’ve since manually enqueued my custom events stylesheet and have manually deleted all the Events Calendar stylesheets to get the site back to looking normal, but obviously this is not a satisfactory solution. I did try renaming my custom stylesheet “tribe-events.css” and it was loaded, but unfortunately so still was the default Event Calendar stylesheet that continued to interfere with my custom styles (even if I selected Skeleton style in settings).
If the tribe_events_stylesheet_url filter has changed and no longer completely disables the default stylesheet when then can you please provide a new code snippet that would enable me to get back the old functionality — ie using *only* a custom stylesheet and not any of the Events Calendar sheets. Thanks.
September 13, 2018 at 4:51 pm #1621449Edward
MemberHey there Aaron!
Thanks for reaching out — sorry to hear that you are experiencing difficulties.
We’ve had some issues with styles since last update, a couple things have broken. Kudos for getting the temp solution, I’ll dig into this a bit and see if I can determine if this is related to that style bug.
Talk to you soon!
Ed ✌️October 5, 2018 at 9:35 am #1638386Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
This topic was modified 7 years, 7 months ago by
-
AuthorPosts
- The topic ‘Replace events calendar stylesheet function broken with latest update’ is closed to new replies.
