Home › Forums › Calendar Products › Events Calendar PRO › Event Sidebar Glitch Below Event
- This topic has 5 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
April 12, 2012 at 5:26 pm #17864
maggew.com
ParticipantPlease visit http://paintatreasure.net/events. It appears as if the “default” WP sidebar is being loaded below each event? May you please help me patch this up. I triple-checked widgets too. There is no sidebar with search, pages, archive, categories. The default 2010 / 2011 themes have been removed.
I’ve been digging around with FireBug and noticed a role=”complementary” sidebar – huh?
Thanks for your attention.
April 13, 2012 at 9:52 am #17869maggew.com
Participant*bump
April 13, 2012 at 11:03 am #17874Jonah
ParticipantHi there, depending on what theme you are using there are a few options for doing this. Ultimately you’ll need to either conditionally remove the sidebar in your theme code in which you’ll need to dig into PHP/HTML a bit.
On the PHP/HTML side you’ll want to figure out what you are using for the Events Template which is set in Settings > The Events Calendar > Template. If you are using the Default Events Template you’ll want to modify /wp-content/plugins/the-events-calendar/views/ecp-page-template.php – make a copy and place in an ‘events’ folder in your theme. Then, you can either remove the sidebar function call altogether in that file or conditionally remove it depending on what events page you are on. Here is some conditional code to help you with that:
if( tribe_is_event() && !tribe_is_day() && !is_single() ) { //Events List Page} elseif( tribe_is_event() && is_single() ) { //Single Events Page
} elseif( tribe_is_day() ) { //Single Event Day Page
} elseif( tribe_is_venue() ) { //Single Venue Page
}
You can just make the sidebar function call in whatever condition where you want a sidebar to display.
You may need to get a developer to help you with this though… I hope that helps.
April 16, 2012 at 8:27 am #17943maggew.com
ParticipantSwitching template from “Event Template” to “Page Template” appears to have been a swift fix. “Template Tab” was the key to our victory.
Thanks for the advice plus wisdom.
April 16, 2012 at 11:04 am #17949Jonah
ParticipantGlad that worked, let us know if you need anything else with this!
July 6, 2015 at 5:00 pm #976506Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Event Sidebar Glitch Below Event’ is closed to new replies.
