Home › Forums › Calendar Products › Events Calendar PRO › Add widgets to Calendar page
- This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by
Barry.
-
AuthorPosts
-
December 7, 2013 at 4:41 pm #80681
newmusicworld
ParticipantHi, 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:
But nothing shows up. Can you help me achieve this?
Thanks,
JohnnyDecember 9, 2013 at 9:04 am #80810Barry
MemberHi 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?
December 22, 2013 at 7:27 am #83216newmusicworld
ParticipantHi, 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/.
December 23, 2013 at 6:37 am #83284Barry
MemberSo 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!
January 13, 2014 at 6:47 am #91123Barry
MemberIt’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!
-
AuthorPosts
- The topic ‘Add widgets to Calendar page’ is closed to new replies.
