Return to Support

Selectively removing sidebar

Home Forums Graphene WordPress theme Support Selectively removing sidebar

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9001
    rumackay
    Member

    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.

    Any ideas?

    #42558

    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.

    #42559
    rumackay
    Member

    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:

    Replace:

    <?php get_sidebar(); ?>

    With:

    <?php if ( ! tribe_is_event_query() || ( tribe_is_event_query() && is_singular() ) ) get_sidebar(); ?>

    Cheers

    #42560
    Quote:
    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.

    #42561
    rumackay
    Member

    No I checked there, it doesn’t show up under pages but it’s definitely a page

    The events calendar

    #42562
    Luko
    Member

    In “Basic Template settings” of plugin settings, choose “one-column, no sidebar” under Events template.

    #42563
    rumackay
    Member

    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.