Hey Guys! I am creating a website with one single footer widget, that I want to put in the middle.
What I did so far, was creating a Shapely child theme and putting in that folder a sidebar-footer.php file with the following:
?php
/**
- The Sidebar widget area for footer.
- @package shapely
*/
?>?php
// If footer sidebars do not have widget let’s bail.if ( ! is_active_sidebar( ‘footer-widget-1’ ) ) {
return;
}
// If we made it this far we must have widgets.
?>div class=“footer-widget-area”>
?php if ( is_active_sidebar( ‘footer-widget-1’ ) ) : ?>
div class=“col-md-4 col-sm-6 footer-widget” role=“complementary”>
?php dynamic_sidebar( ‘footer-widget-1’ ); ?>
/div>
?php endif; ?>/div>
But my widget is still in the left, acting like there are 3 empty columns next to it. What did I do wrong?
Thanks in advance!