including the events detail page to have the featured events widget
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 13 Feb 2018 19:58:43 +0000 (14:58 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 13 Feb 2018 19:58:43 +0000 (14:58 -0500)
adding the featured events widget to the event detail page sidebar

sidebar-page.php

index e0a4a83..b191d4e 100644 (file)
@@ -44,7 +44,7 @@ if ( ! is_active_sidebar( 'sidebar-2' ) ) {
        <?php endif; ?>
 
        <?php // Sidebar for Events page only
-       if ( is_page('events') ) : ?>
+       if ( is_page('events') || is_page('event-detail')) : ?>
 
                <?php if ( !dynamic_sidebar('sidebar-3') ) : ?><?php endif ; ?>