Hide or Show Events List Widget on Event pages

Home Forums Calendar Products Events Calendar PRO Hide or Show Events List Widget on Event pages

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1071770
    Nancy Seeger
    Participant

    Hi,

    I’m using the Display Widget plugin to Show and Hide sidebar widgets. My client uses extensively the premium feature “Events List” Widget to list specific event categories for Classes or Workshops.

    I am finding I can’t access the Events categories when I go to hide the category “Classes” for a sidebar widget (although normal categories show up). I am using specific post IDs to hide “Classes” filtered category on the Events List widget on an Events post. What I want to show is only Workshops on a specific Events post which right now I have to do with a post ID. So right now I can only hide/show event categories by post ID and not by category for the Events List widget.

    How can I hide or show the “Events List” widget by category on Events posts? I for example don’t want to show “Classes” filtered Events List.

    The website has the most recent version or WordPress and Events Calendar Pro.

    #1072228
    Nico
    Member

    Howdy @nancyseeger,

    Welcome to our support forums and thanks for reaching out to us. I’ll help you on this!

    First of all let me say I’m a bit confused by your description of the issue. It will surely be easier to understand if you can share with me the site URL and indicate in which pages/URL’s you want to display/hide the widgets.

    From what I understood you don’t have the option to hide the widgets on Event Category pages, right? While this might be a limitation of the Display Widget plugin we can try to look for a workaround. I also get that you have more than one Event List widget, right? One for classes and one for Workshops?

    Please let me know about it, and if possible clarify a bit on my thoughts,
    Have a great weekend,
    Nico

    #1072255
    Nancy Seeger
    Participant

    This reply is private.

    #1073411
    Nico
    Member

    Hey Nancy,

    Thanks for following up on this! It’s a bit clearer for me now 🙂

    Event Categories are registered as a custom post type taxonomy, maybe the plugin doesn’t support those! I guess a way around for this would be to hide/show them by CSS, for example, to target Event Category listings you use the following selector:


    /* hide specific widget by id */
    body.post-type-archive-tribe_events #tribe-events-adv-list-widget-2 {
    display: none !important;
    }

    /* hide all event widgets */
    body.post-type-archive-tribe_events .tribe-events-adv-list-widget {
    display: none !important;
    }

    Do you think this approach might work for you? All event view have some body class that you can use to select elements like above.

    In case this works please let me know if you need help to identify the classes for a view or something,
    Best,
    Nico

    #1083916
    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 ‘Hide or Show Events List Widget on Event pages’ is closed to new replies.