Selectively removing sidebar
I’m trying to make “the events calendar” full width by removing the sidebar selectively for that page as outlined here
After a bit of research I think I need to change something to do with your theme rather than how they’ve suggested, would that be right?
I’m taking a guess that since I’m using two column layout with sidebar 2 that I need to change the sidebar 2.php. If that’s right I have no idea what I need to do to make their suggestion work.
If you are adding the calendar to a page, you can simply select the “one-column, no sidebar” template under “Page Attributes”.
If you are adding the calendar to a post, you can accomplish the same thing with custom css that targets that particular post.
Thanks Kenneth, but I can’t access page attributes for the calendar as it seem to be it’s own page, if that makes sense.
In the tutorial they talk about adding an “if calendar then no sidebar” type clause to the themes page.php code with child themes but like I mentioned in the OP I don’t know where to add that code with your theme.
This is the code they mention:
<?php get_sidebar(); ?>
<?php if ( ! tribe_is_event_query() || ( tribe_is_event_query() && is_singular() ) ) get_sidebar(); ?>
CheersModQuote:I can’t access page attributes for the calendar as it seem to be it’s own page, if that makes sense.
If it’s a page, it should show up under the “Show All Pages” link in your dashboard.
Which events calendar plugin is this? I’ll take a look at their documentation.
You must be logged in to reply to this topic.