added for when sidebar is active is displayed in theme

This commit is contained in:
Fabiano Alencar 2018-04-17 09:27:55 -03:00
parent 2d802af435
commit 55a7ea9b2a
5 changed files with 73 additions and 63 deletions

View File

@ -5,6 +5,8 @@
<?php get_template_part('template-parts/loop'); ?>
</div><!-- /#content -->
</div>
<?php get_sidebar(); ?>
<?php if ( is_active_sidebar( 'sidebar-right' ) ) {
get_sidebar();
} ?>
</div><!-- /.row -->
<?php get_footer(); ?>

View File

@ -5,6 +5,8 @@
<?php get_template_part('template-parts/loop'); ?>
</div><!-- /#content -->
</div>
<?php get_sidebar(); ?>
<?php if ( is_active_sidebar( 'sidebar-right' ) ) {
get_sidebar();
} ?>
</div><!-- /.row -->
<?php get_footer(); ?>

View File

@ -1,6 +1,7 @@
</div>
<?php if(!is_404()) : ?>
<footer class="container-fluid p-4 p-sm-5 mt-2 bg-haiti">
<?php if ( is_active_sidebar( 'footer-1' ) ) { ?>
<div class="row">
<div class="col-12 col-lg">
<ul class="p-4 d-lg-flex justify-content-md-center mb-md-0">
@ -67,6 +68,7 @@
</ul>
</div>
</div>
<?php } ?>
<hr class="bg-scooter"/>
<div class="row p-4">
<div class="col text-white font-weight-normal">

View File

@ -5,6 +5,8 @@
<?php get_template_part('template-parts/loop'); ?>
</div><!-- /#content -->
</div>
<?php get_sidebar(); ?>
<?php if ( is_active_sidebar( 'sidebar-right' ) ) {
get_sidebar();
} ?>
</div>
<?php get_footer();

View File

@ -5,6 +5,8 @@
<?php get_template_part('template-parts/loop'); ?>
</div><!-- /#content -->
</div>
<?php get_sidebar(); ?>
<?php if ( is_active_sidebar( 'sidebar-right' ) ) {
get_sidebar();
} ?>
</div><!-- /.row -->
<?php get_footer(); ?>