Change the default view for categories to List view

Home Forums Calendar Products Community Events Change the default view for categories to List view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1087747
    abqsangha
    Participant

    I tried pasting the snippet from the Knowledgebase article into my theme’s functions.php (. . . >wp-content>theme>my theme>functions.php (inserting between <?php and ?>). When I searched the Events Calendar by category I got the error: Fatal error: Class ‘Tribe_Events’ not found in /home/. . . on line 18. I must be pasting the snippet in the wrong place?

    #1087913
    Geoff
    Member

    Hi Sally,

    So sorry for the trouble here! The snippet was indeed a little outdated and I was able to fix it up into something that will do the trick.

    Give this a try instead and let me know if it helps. 🙂

    https://gist.github.com/theeventscalendar/593130a4a059561eb9b0

     

    #1087956
    abqsangha
    Participant

    Thank you, Geoff! It works.

    #1088453
    Geoff
    Member

    Awesome, so glad to hear that! Thanks for following up and letting us know so that we could correct the snippet on our end as well–super helpful. 🙂

    Let us know if any other questions pop up in a new thread and we’d be happy to help.

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change the default view for categories to List view’ is closed to new replies.