• Resolved Philippe

    (@pcdesign)


    Hi everyone πŸ™‚

    The problem is that the urls for the List / Month / Today views get translated, and thus the buttons don’t work on websites that aren’t setup in “English” in WP’s General settings.

    => I’ve come up with a temporary fix, but first of all please read the following disclaimer :
    —I’ve only got basic knowledge of JQuery so please forgive me if this code is not optimized—
    —Please can an administrator (or experienced developer) validate that this code is safe and ok to run, thanks—

    1) Create a Javascript file (for example “calendarfix.js”) in your website (for example in your theme’s child-theme folder) containing this code (make sure you replace https://www.mywebsite.com with your website’s url)

    // fixes the views problem in The Events Calendar
    jQuery(function($) {
    if ( $( '.tribe-events-c-view-selector__list-item--list a' ).length ) {
    	$('.tribe-events-c-view-selector__list-item--list a').attr("href","https://www.mywebsite.com/events/list")
    }
    if ( $( '.tribe-events-c-view-selector__list-item--month a' ).length ) {
    	$('.tribe-events-c-view-selector__list-item--month a').attr("href","https://www.mywebsite.com/events/month")
    }
    if ( $( '.tribe-events-c-view-selector__list-item--day a' ).length ) {
    	$('.tribe-events-c-view-selector__list-item--day a').attr("href","https://www.mywebsite.com/events/today")
    }
    })

    2) Go to Events > Settings > Display
    In the “Add HTML before event content” field setup the link to your Javascript file :
    <script src="https://www.mywebsite.com/wp-content/themes/twentysixteen-child/calendarfix.js"></script> (change the url to fit your needs)

    Hope this helps.

    Philippe

    • This topic was modified 3 years, 9 months ago by Philippe.
    • This topic was modified 3 years, 9 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Deblyn Prado

    (@deblynprado)

    Hi there @pcdesign!
    How’re you?

    Thanks for pointing this to us! Our development team already knows about it and it’s working in a fix that should be released soon.

    I’ve notified them that you’re one of the affected users, so once fix is released we’ll be in touch with you to confirm if everything is working as expected.

    Stay tuned!
    Cheers,

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hello,

    Just wanted to let you know that a new maintenance release is out, including a fix for the issue that you were experiencing.

    Find out more about this release β†’ https://theeventscalendar.com/release-notes/the-events-calendar-5-1-5/

    Please try updating and let us know if you are experiencing any further issues. As always, we recommend running updates on your staging site before doing so on your live site, just to be on the safe side.

    Thanks again for your patience while we worked on getting this fixed!

    Thread Starter Philippe

    (@pcdesign)

    Hi there,
    Many thanks, it works great now !
    Have a great day πŸ™‚

    Plugin Support Deblyn Prado

    (@deblynprado)

    Hey there @pcdesign!
    Thanks for your feedback!

    I’m glad to see that everything is working now!

    I’ll mark this thread as solved!

    Be safe!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘List / Month / Today views not working’ is closed to new replies.