Home › Forums › Calendar Products › Events Calendar PRO › Make Month View Calendar a Full Width Page
- This topic has 4 replies, 5 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
August 5, 2013 at 12:19 pm #58872Sean MulkerrinParticipant
Hi There,
I would like to display the month view calendar full width (whilst keep my listing with the sidebar there). When I leave the option to display month view checked under Display, it breaks my layout, because it’s too wide once it populates with the events data, so it would need to be full width, is there a way I can embed either using a plugin or a hook to get it to display on a full width page just in month view? Any workarounds would be appreciated.Thanks!
August 5, 2013 at 1:30 pm #58885mikemurphyParticipantDitto, i’d like to achieve this also
August 7, 2013 at 7:45 am #59267BarryMemberHi Noel,
The process is going to be different with different themes, but let’s look at an example using the default Twenty Twelve theme and let’s assume we are using the Default Page Template for events.
We could then edit/override the theme’s page.php template and change:
<?php get_sidebar(); ?>
To:
<?php if ( ! tribe_is_event_query() || ( tribe_is_event_query() && is_singular() ) ) get_sidebar(); ?>
Which is basically telling WordPress to show the sidebar:
* If the page/request is nothing to do with events
* Or show it if it is for events but just a single item, such an individual event or venueThe only problem then is that when you view month view, for instance, the sidebar has gone but the calendar will not occupy the full space. You could counter this by adding a snippet like this one to your theme’s functions.php file.
So that should give an overview of how you might get around this. Again, each theme is different and this may not apply exactly as described to other themes (very likely it will not) but it hopefully it gives you some ideas. Also note that you may prefer to place your customizations in a child theme, again I’ll leave it to you to dig into that 🙂
October 10, 2013 at 2:49 pm #70432LeahMemberWe now have a full video tutorial for this process- check it out at https://theeventscalendar.com/selectively-removing-sidebars-in-twenty-twelve/
July 7, 2015 at 6:29 am #981386Support DroidKeymasterThis 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 ‘Make Month View Calendar a Full Width Page’ is closed to new replies.