Make footer menu and description centred mobile only

Topic summary

A user seeks CSS code to center footer menu items and descriptions on mobile devices only for their Shopify store (www.crabbabbleecrafts.com).

Solution Provided:

  • Add custom CSS to the theme’s stylesheet (base.css, style.css, or theme.css)
  • Use a media query targeting screens up to 749px width
  • Apply text-align: center to footer headings and content
  • Apply justify-content: center to footer menu items

Current Status:
The solution mostly works, but the original poster reports the centering is slightly off. The issue remains unresolved with no follow-up explanation yet provided for the alignment discrepancy.

Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

Hello,

Does anyone know the code to make the menu and description in the footer of my website centred in mobile ONLY?

TIA

url: www.crababblecrafts.com

password: abble

1 Like

Hi @KJD_1

Try this one.

  • 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 (max-width: 749px){
.footer-block__details-content.rte p {
    text-align: center;
}
h2.footer-block__heading {
    text-align: center;
}
.footer-block.grid__item.footer-block--menu.desktop-align-right a {
    justify-content: center;
}
}

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

1 Like

Hello! Thank you, that mainly worked but it is still slightly off centred. Any thoughts on why that. might be?