Home › Forums › Calendar Products › Events Calendar PRO › Remove Calendar Sidebar
- This topic has 3 replies, 2 voices, and was last updated 9 years, 4 months ago by Geoff.
-
AuthorPosts
-
December 29, 2014 at 9:20 am #926317kpollitzParticipant
I would like to remove the sidebar from the main calendar view. The calendar is set to my theme’s default page which includes a sidebar. Currently, it displays a full width calendar and the sidebar is actually at below the calendar. I do not want to change the default sidebar, but simply remove it from the events calendar view. Is this possible?
December 29, 2014 at 10:06 am #926357GeoffMemberHi there, Krystal! Thanks for reaching out. 🙂
Good question. I do want to note, first of all, that we are a limited in how much support we can provide for custom development questions like this–but I’m happy to help point you in the right direction, if I can.
If you are using theme’s default page template, then you could edit the template to display everywhere but Events by wrapping the sidebar in a conditional.
For example:
if ( is_page_template('page.php') && ! tribe_is_month() || tribe_is_event()) { /* get the sidebar... */ }
Note this has not been tested and you may need to fiddle with it to get exactly what you’re looking for. You can see a full list of calendar conditionals here.
Another way might be to use the default events template. This would naturally remove the sidebar from the event calendar view.
Give those a try and let me know if it does the trick. 🙂
Cheers!
GeoffDecember 29, 2014 at 11:31 am #926384kpollitzParticipantI was able to find where I could change the events template to a page template with no sidebar and/or comment box. Thanks for your help.
December 29, 2014 at 11:33 am #926386GeoffMemberAwesome! i’m so glad that did the trick–thanks for following up and confirming the answer. 🙂
I’ll go ahead close this thread, but please feel free to open a new one if anything else comes up–we’d be happy to help.
Cheers!
Geoff -
AuthorPosts
- The topic ‘Remove Calendar Sidebar’ is closed to new replies.