Home › Forums › Calendar Products › Events Calendar PRO › Genesis Full-width not working
- This topic has 5 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 28, 2013 at 7:57 pm #63546
evossman
ParticipantI’m using events calendar pro with Genesis News theme and trying to get a full-width page to show up. I’ve tried every combination of display settings with no luck. I’ve tried a few “views” pages me theme as well but can’t force the full-width. Does anyone know of a trick?
August 29, 2013 at 1:59 pm #63695evossman
ParticipantI’ve tried the following but it turns all category (not just event category) pages into full-width. https://theeventscalendar.com/tutorial-integrating-the-events-calendar-w-genesis/
/*—————————————————————*/
/* Set Custom Layouts
/*—————————————————————*/
add_filter(‘genesis_pre_get_option_site_layout’, ‘set_layouts’);
function set_layouts($layout) {if ( is_front_page() ) {
$layout = ‘full-width-content’;
}return $layout;
}August 29, 2013 at 2:14 pm #63700evossman
ParticipantSorry, that should be if(tribe_is_month)
August 29, 2013 at 3:32 pm #63728evossman
ParticipantOkay, I think I solved it. I had to check for the post_type ‘tribe_events’.
if(get_post_type() == ‘tribe_events’). That makes every event calendar post, day, single, or category page full width. You can play around with get_post_type() == ‘tribe_organizer’ and ‘tribe_venue’ to set the widths.
I also had to pull in tribe-events.css and add some padding to make it have some padding.
#tribe-events-pg-template{
padding: 20px;
}You also need to set the display to default event template either in full styles or tribe events styles.
Hope this helps someone.
August 29, 2013 at 4:15 pm #63740Rob
MemberHey, thank you for this evossman! This will definitely be of value to folks as we have a number of people who are struggling to get the plugin properly integrated with certain Genesis installations. Sorry that you had to figure this out on your own without any assistance from the team, but if we can do anything else in the future please just let us know. Thanks again for posting the solution.
July 7, 2015 at 6:27 am #980501Support Droid
KeymasterThis 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 ‘Genesis Full-width not working’ is closed to new replies.
