<?php if( is_active_sidebar('main-sidebar')) : ?>
    <div class="col-lg-3 text-decoration-none d-none d-lg-block">
        <aside class="sticky-sidebar overflow-hidden pt-5">
        
        <?php dynamic_sidebar('main-sidebar') ?>
                
        </aside>
        </div>

<?php endif; ?>