Specify Sidebar for Events Page

Home Forums Calendar Products Events Calendar PRO Specify Sidebar for Events Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #67096
    Derek
    Participant

    I started this discussion already and have done some research since…
    https://tri.be/support/forums/topic/specify-sidebar-for-events-page/

    I found a plugin called Widget Logic that allows you to specify what page a widget shows up on. So I can use this page as a reference for conditional tags…
    http://codex.wordpress.org/Conditional_Tags

    My problem is, what exactly is the events page? I tried…
    is_page( ‘events’ )

    But that didn’t work because I’m guessing it’s not a standard page?

    Then I tried…
    is_page_template( ‘default-template.php’ )

    But that didn’t work because I’m guessing the template is located in a sub folder of my theme?

    So, anyone know which conditional tag I can use that will work?

    #67369
    Barry
    Member

    Hi Derek,

    Assuming you’re using the Default Events Template you should be able to use conditionals like:

    * tribe_is_month()
    * tribe_is_upcoming()
    * tribe_is_day()
    * tribe_is_event_query()
    * …etc…

    If you are using the Default Page Template or some other theme specific template for a variety of reasons this can be a little trickier, though still possible, and the answer would depend upon exactly what you want to do (do you want to target all event pages or just a subset of them, etc).

    Sometimes the reality is that playing with various combinations of these is the best way to discover what works in your circumstances 🙂

    Hope that helps!

    #67681
    Derek
    Participant

    I ended up finding a plugin that did the trick…

    Widget Context

    Thanks for your help!

    #67729
    Barry
    Member

    Excellent!

    #981017
    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 ‘Specify Sidebar for Events Page’ is closed to new replies.