Add widgets to Calendar page

Home Forums Calendar Products Events Calendar PRO Add widgets to Calendar page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #80681
    newmusicworld
    Participant

    Hi, I’m hoping you can guide me in how best to be able to add custom widgets to my sites /events page. Because there is no admin page to edit, I can’t set show or hide widgets per page like I can on other pages via Jetpack’s Widget Visibility, so I was hoping to be able to write in new “events page only” widget areas that I can add custom content to in the Widget panel.

    So far I have created the custom widget areas for the Widget panel, but can’t get them to appear on the actual /events page. I copied list.php to my child theme/tribe-events directory and inserted this code to correspond with the area I created:

    http://pastebin.com/UCZy6Tuy

    But nothing shows up. Can you help me achieve this?

    Thanks,
    Johnny

    #80810
    Barry
    Member

    Hi Johnny,

    Not too sure if this will help (I’m not familiar with Jetpack) but you can use tribe_is_event_query() and functions like tribe_is_month() to help detect if you are on an events-related page.

    Is that any help?

    #83216
    newmusicworld
    Participant

    Hi, and sorry for the delay in following up. I’m afraid my coding isn’t strong enough to use the above functions with any facility. But, perhaps I can simplify my question: In what Tribe Events view file can I add my custom code (linked in previous post) to add new widget areas to the sidebar in the main events (list) view? On my site this would be: http://newmusicworld.org/events/.

    #83284
    Barry
    Member

    So that would entail adding your code to the default-template.php template.

    However, since this template is used for both single events and the main events view, you’d need to tweak your code slightly and add something like the tribe_is_list_view() conditional (if as in your case you are using upcoming events as the default events view) or else the reverse – and use a WordPress conditional like is_singular() to detect when it is a single type page (such as a single event).

    Hope that helps!

    #91123
    Barry
    Member

    It’s been a while so I’ll go ahead and close this thread. Of course if you need further help for this or any other issue please do feel free to create a new thread or threads as needed. Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add widgets to Calendar page’ is closed to new replies.