Twitter Bootstrap 4 WordPress Starter Theme for Developers

Theme File: sidebar-right.php

Name: sidebar-right.php

Path: devdmbootstrap4/template-parts/sidebar-right.php


Template part containing the right side bar widget area. We are using the sizes set in the customizer to determine whether or not we render this at all. If we are rendering the right side bar, we apply the calculated column size from the devdmbootstrap_column_size(‘right/left’) function defined in functions.php.

    $rightSidebarSize = devdmbootstrap_column_size('right');
    if ($rightSidebarSize != 0) :

    <div class="col-md-<?php echo esc_attr($rightSidebarSize); ?> dmbs-right">
        <?php dynamic_sidebar( 'dmbs-right-sidebar' ); ?>

<?php endif; ?>