Left sidebar does not show some widget
-
Hi all,
I am working on a custom theme from scratch and when I try to customize it for woocommerce I get a strange bug that I do not understand. I try to add some widget on my left and right side of the page and some of them does not show when I put them on the left sidebar. Can someone help me with this pls?
This is the code I use
<section class="page-wrap"> <div class="container"> <section class="row"> <?php if(is_active_sidebar('page-left-sidebar')): ?> <div class="col-3"> <?php dynamic_sidebar('page-left-sidebar'); ?> </div> <?php endif; ?> <?php if(is_active_sidebar('page-left-sidebar') xor is_active_sidebar('page-right-sidebar')): ?> <div class="col-9"> <?php elseif (is_active_sidebar('page-left-sidebar') && is_active_sidebar('page-right-sidebar')): ?> <div class="col-6"> <?php else: ?> <div class="col-12"> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php get_template_part('includes/section', 'content'); ?> </div> <?php if(is_active_sidebar('page-right-sidebar')): ?> <div class="col-3"> <?php dynamic_sidebar('page-right-sidebar'); ?> </div> <?php endif; ?> </section> </div> </section>and this is the result on chrome Version 80.0.3987.106 (Build officiel) (64 bits) but I got the same on FF and Edge
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Left sidebar does not show some widget’ is closed to new replies.