Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Selectively Removing Sidebar

Home / Forums / Virtue Theme / Selectively Removing Sidebar

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
April 14, 2014 at 7:48 pm

I am using a plugin called The Events Calendar from Modern Tribe . When I place this in the theme, it shows the ‘Primary Sidebar’. I want to add this condition to the theme, however not sure where these conditions should be set in the code. Can I add this to the function, or the page.php, if so how?

<?php if ( ! tribe_is_event_query() || ( tribe_is_event_query() && is_singular() ) ) get_sidebar(); ?>

See reference

Thanks,
Brandon

  • The forum ‘Virtue Theme’ is closed to new topics and replies.