Replace events calendar stylesheet function broken with latest update

Home Forums Calendar Products Events Calendar PRO Replace events calendar stylesheet function broken with latest update

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1620070
    Aaron Simms
    Participant

    I 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.
    #1620174
    Aaron Simms
    Participant

    Update: 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.

    #1621449
    Edward
    Member

    Hey 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 ✌️

    #1638386
    Support Droid
    Keymaster

    Hey 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Replace events calendar stylesheet function broken with latest update’ is closed to new replies.