Different default view for mobile vs desktop

Home Forums Calendar Products Events Calendar PRO Different default view for mobile vs desktop

  • This topic has 11 replies, 3 voices, and was last updated 6 years ago by Jonathan Appleton.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1182389
    Jonathan Appleton
    Participant

    Thanks for this cool function that redirects mobile users from default month view to list view.

    https://theeventscalendar.com/support/forums/topic/different-default-views-for-mobile-vs-desktop/

    We have 6 venues though so any idea if we could redirect it to list view on mobile but to keep it in the venue the user is viewing already .

    The snippet you gave the previous poster works but takes you to the month view showing all venues.

    So we would need to redirect http://www.eddiecatz.com/events/?tribe_venues=1373

    to http://www.eddiecatz.com/events/list/?tribe_venues%5B%5D=1373

    Also why is that %5B%5D being added to the url when we switch views please as it when its removed the url still works and then our correct venue name appears.

    thanks
    Jonathan

    #1182965
    Geoff B.
    Member

    Good evening Jonathan and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    As it turns out, you no longer need the snippet.

    Since 4.3, we offer a built-in feature for this:

    builtin

    So in short, I would recommend removing the snippet and using that feature instead.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1184391
    Jonathan Appleton
    Participant

    Hi

    Thanks for letting me know. I just full upgraded to latest version of EC, EC Pro and Filter bar.

    I set the default for desktop view to MONTH

    and default for mobile to LIST but its not working. I still see month on all devices even after clearing cache etc

    any ideas?

    http://eddiecatz.jacl.co.uk/events/

    #1184417
    Jonathan Appleton
    Participant

    I’ve found the issue to be with the Yoast SEO plugin as if I disable Yoast then the Mobile view works.

    Please can you test the mobile default view feature with latest Yoast SEO plugin please and let me know if its a conflict?

    #1184690
    Geoff B.
    Member

    Good evening Jonathan,

    Thank you for writing back, running those tests and bringing this to our attention.

    You are absolutely right! This is a bug that I was just able to reproduce.
    We apologize for the inconvenience this might be causing.

    I will try to see if I can get a temporary fix happening.
    If not, I also opened a ticket for this.

    Unfortunately, I cannot commit to a release date at this point. But stay tuned, you will be contacted when the fix is released.

    Have a good week-end,

    Geoff B.

    #1184691
    Jonathan Appleton
    Participant

    Thanks so much for confirming 🙂

    I wonder if its a certain feature within Yoast SEO that we can disable in the meantime… no probs – fingers crossed you find a fix in the next week or so

    thanks
    Jonathan

    #1184727
    Geoff B.
    Member

    Hey Jonathan,

    I actually do have a snippet to add to your theme’s functions.php (remove the opening php tag): https://git.io/vXIKX

    That should allow the mobile default view to work like a charm.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1185163
    Jonathan Appleton
    Participant

    Hi Geoff

    Thanks so much for that interim solutions – that works for me with Yoast SEO enabled 🙂

    Superb, thanks

    #1185311
    Geoff B.
    Member

    Good evening Jonathan,

    I’m stoked that this worked out for you.

    As promised before, we will let you know as soon as the fix is released in our regular code.

    Have a great day!

    Geoff B.

     

    #1473942
    Victor
    Keymaster

    Hi Jonathan!

    Just wanted to share with you that a new maintenance release (for the Week of 5 March 2018) is out, including a fix for this issue 🙂

    Find out more about this release → https://theeventscalendar.com/maintenance-release-week-5-march-2018/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    #1492919
    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 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Different default view for mobile vs desktop’ is closed to new replies.