Center all contents in footer including image - Dawn Theme

I want all of the contents of my footer section to be stacked on top of one another on desktop version only. I want it to look just like the mobile version.

First the image, then the links, then the email subscription area and last is the social media icons.

And I want everything to be perfectly centered.

Adjustable Satin Bonnets & Hair Accessories - FeminiqueByCameron LLC

1 Like

Hi @Anonymous

Try the code below.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (min-width: 750px) {
.footer__blocks-wrapper.grid.grid--1-col.grid--2-col.grid--4-col-tablet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem
}

.footer-block.grid__item.footer-block--menu {
    text-align: center;
}

.footer-block.grid__item {
    margin: 0;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hi @Anonymous

Please add this code at the bottom of your base.css file in Online store > Themes > Edit code

@media (min-width: 768px) {
.footer__content-top .footer__blocks-wrapper {
    flex-direction: column;
    align-items: center;
}
.footer__content-top .grid {
    row-gap: 2rem !important;
}
.footer__content-top .footer-block--menu {
    text-align: center;
}
.footer__content-top .footer-block--menu li {
    margin-right: 0px !important;
}
}

1 Like

thank you so much!