Reply To: Problem with Events Calendar

Home Forums Support Problem with Events Calendar Reply To: Problem with Events Calendar

Home Forums Support Problem with Events Calendar Reply To: Problem with Events Calendar

#109680
Tom
Lead Developer
Lead Developer

If you don’t want a sidebar with it, set it back to “Default Events Template”.

Then add this CSS:

.tribe-events-page-template .site-content {
    background: #ffffff;
    margin: 40px 0;
    padding: 40px;
}

Adjust the margin value to your “Separating space” you have set.

Adjust the padding to whatever content padding you have set.

As for the plugin highlighting the Blog menu item, try this function:

add_filter('nav_menu_css_class', 'generate_te_active_menu', 400);
function generate_te_active_menu($menu) {
	$post_type = get_post_type();

	switch($post_type) {
	
		case 'tribe_events':
			$menu = str_replace('current-menu-item', '', $menu);
			$menu = str_replace('current_page_item', '', $menu);
		break;
    
  	}

	return $menu;
}

How to add PHP: http://generatepress.com/knowledgebase/adding-php-functions/