Change footer widget to one

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!

hey there

Give me a url of the page,
So, you want to have only one full wdth widget in the footer right?

Hi!

Exactly, I want to have one full width widget in the footer. :slight_smile:
My page is: 937.cserkesz.hu

This css code will help you acheive your goal:

.col-md-3.col-sm-6.footer-widget {
    width: 100%;
}

Let me know if you need other assistance :slight_smile:

1 Like

Thank you! It worked just the way as it should! :slight_smile: