Customize views

Home Forums Calendar Products Events Calendar PRO Customize views

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1092452
    Meredith
    Participant

    I’d like to do the following:

    – Make one template that displays only events from one category, in a list view with images
    – Make a second template that displays events from all other categories, in month grid.

    I have looked through the documentation on making templates and can’t find instructions on doing this. Can you please advise?

    Thanks!

    #1093053
    Hunter
    Moderator

    Hello Kathleen!

    Welcome to the support forums and thank you for choosing PRO! We love seeing new faces around here 🙂

    In response to your first question, if you visit any category page, you should be able to view a list of events (including images) tied to each category. For example, if your category is called “Movies” – you would visit http://www.your-site.com/events/category/movies (depending on your permalink structure found in both your WP permalink settings and your Events General settings).

    To answer your second inquiry, so long as you have month view enabled under Events > Settings > Display (Enable event views), simply visit your main events page and select “Month” from the “View As” dropdown to visit your calendar page.

    If you ever need to create custom templates, review our Themer’s Guide for information and examples. A few other articles worth mentioning include the Testing for conflicts and New User Primer.

    I hope I’ve sufficiently answered your questions and please let me know if you need any more assistance. Have a great week!

    #1093540
    Meredith
    Participant

    Hi Hunter,

    thanks for your reply! I am not quite all set and have a few follow up questions.

    You wrote: “To answer your second inquiry, so long as you have month view enabled under Events > Settings > Display (Enable event views), simply visit your main events page and select “Month” from the “View As” dropdown to visit your calendar page.”

    This doesn’t quite get me where I need to be.

    First of all, I don’t want the user to have to select “month,” I want it to be the default view. I figured that out; I can just put this URL in my navigation menu:
    http://cnyepiscopal.wpengine.com/events/month.

    However, I would like one category excluded from the events on this screen.

    If I were doing this for posts, I would create a new template file in the theme directory, create a new WP_Query, and exclude the one category I don’t want. Or I would hook into the pre_get_posts filter to exclude the category. It’s not clear to me how do to this with the Events Calendar, especially to also use the month-grid view.

    Suggestions?

    Thanks!

    #1094853
    Hunter
    Moderator

    Hello and welcome back,

    First of all, I don’t want the user to have to select “month,” I want it to be the default view.

    If you visit Events > Settings > Display, we have a Default view setting where you can select the Month view as the default.

    Additionally, to hide certain categories from the calendar, you can do this via CSS. For example, if you wanted to hide the category “authors” from displaying on the calendar, you would add the following CSS snippet to your styles.css file:

    .type-tribe_events.tribe-events-category-authors {
    display: none !important;
    }

    Let me know if this helps and enjoy your day!

    #1101412
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Customize views’ is closed to new replies.