show sidebar in associats members if exists

This commit is contained in:
jorge 2024-03-31 16:33:41 +02:00
parent 3ad6632cc6
commit 228ffece25
1 changed files with 2 additions and 5 deletions

View File

@ -88,14 +88,11 @@ get_header();
</section> </section>
</main><!-- #main --> </main><!-- #main -->
<?php <?php if ( is_active_sidebar( 'after-content-members' ) ):?>
if ( ! is_active_sidebar( 'after-content-members' ) ) {
return;
} else {?>
<aside id="secondary" class="widget-area widget-area-members"> <aside id="secondary" class="widget-area widget-area-members">
<?php dynamic_sidebar( 'after-content-members' ); ?> <?php dynamic_sidebar( 'after-content-members' ); ?>
</aside><!-- #secondary --> </aside><!-- #secondary -->
<?php }; //end else ?> <?php endif; //end sidebar ?>
<?php <?php
get_sidebar(); get_sidebar();