show sidebar in associats members if exists

This commit is contained in:
Jorge vitrubio.net 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>
</main><!-- #main -->
<?php
if ( ! is_active_sidebar( 'after-content-members' ) ) {
return;
} else {?>
<?php if ( is_active_sidebar( 'after-content-members' ) ):?>
<aside id="secondary" class="widget-area widget-area-members">
<?php dynamic_sidebar( 'after-content-members' ); ?>
</aside><!-- #secondary -->
<?php }; //end else ?>
<?php endif; //end sidebar ?>
<?php
get_sidebar();