Remove Primary sidebar widget from Event List Detail

Home Forums Calendar Products Events Calendar PRO Remove Primary sidebar widget from Event List Detail

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27845
    Werner Brandt
    Participant

    I am using the genesis framework and I set the default layout to full width. The calendar & List pages work fine, but on the Event Detail page the Primary sidebar is displayed. What is the easiest way to remove the widget.

    I added this code to the functions.php of the child theme:

    add_filter(‘genesis_pre_get_option_site_layout’, ‘set_layouts’);
    function set_layouts($layout) {

    if ( is_front_page() || tribe_is_month() || tribe_is_event()) {
    $layout = ‘full-width-content’;
    }

    return $layout;
    }

    #27850
    Jonah
    Participant

    Hi Werner,

    Try using these conditional statements instead: https://gist.github.com/2415009

    Let me know whether or not that helps.

    – Jonah

    #27854
    Werner Brandt
    Participant

    That did it! Thanks!

    #27870
    Jonah
    Participant

    Glad to hear Werner, let us know if there’s anything else you need! And, if you’re happy with the plugin we’d greatly appreciated if you reviewed it on WP.org: http://wordpress.org/extend/plugins/the-events-calendar/

    Regards,
    Jonah

    #978144
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove Primary sidebar widget from Event List Detail’ is closed to new replies.