Selectively removing sidebar
AnonymousApril 21, 2014 at 1:39 am #9001
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.
AnonymousApril 21, 2014 at 10:24 pm #42559
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.
AnonymousApril 22, 2014 at 11:41 am #42562
In “Basic Template settings” of plugin settings, choose “one-column, no sidebar” under Events template.
AnonymousApril 22, 2014 at 11:33 pm #42563
Yep, tried that Luko but it doesn’t work. The calendar disappears and the sidebar is still there. I think that’s why they have the work around from my original post but again I have no idea how to apply it to this theme.
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.