Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27291

    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

    #133526

    Hi!

    Did you try to select “no sidebar” for pages on the theme options page (Enfold > Sidebar)?

    Regards,

    Peter

    #133527

    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

    #133528

    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';
    }

    }

    #133531

    Brilliant! That worked, thank you very much.

    #133532

    Hi!

    Great :)

    Regards,

    Peter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Events Plugin’ is closed to new replies.