Hi
I am using The Events Calendar plugin (http://wordpress.org/plugins/the-events-calendar/) on my test site which seems to work really well with Enfold. The only issue I am having is getting the calendar to display on a page without the sidebar showing. Here is my live page currently: http://www.robgibbs.co.uk/SRtestsite/events/
I cannot see a way of removing the right sidebar. Any recommendations?
Thanks,
Rob
Hi!
Did you try to select “no sidebar” for pages on the theme options page (Enfold > Sidebar)?
Regards,
Peter
Hi Peter,
Thanks for your response.
Ok, I had it already set to that option and the sidebar was still displaying. I did however change the others just to see and it seems that changing the Blog page option to “no sidebar” has made it work. The problem is with this however is that I would actually like a sidebar on my blog! Is there a way round this?
Thanks,
Rob
Try following:
1) Go to Events > Settings > Display and select the “page template” instead of the “default events template”.
2) Add following code to the bottom of functions.php
add_action('wp_head','avia_remove_sidebar_events');
function avia_remove_sidebar_events()
{
global $avia_config;
if( tribe_is_event_query())
{
$avia_config['layout']['current'] = $avia_config['layout']['fullsize'];
$avia_config['layout']['current']['main'] = 'fullsize';
}
}
Brilliant! That worked, thank you very much.
Hi!
Great :)
Regards,
Peter