Center menu in footer?

Solved

Center menu in footer?

jasminsharp97
Shopify Partner
44 0 18

I have looked through so many different suggestions and tried everything and I can't get the footer on my site to center. I see this option to center the menus in mobile, but even when I select that nothing in the footer is centered.

Screenshot 2024-06-07 172402.png

This is the site: https://km48zcng32s59bjx-27047230.shopifypreview.com

Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1749 533 592

This is an accepted solution.

You please add this CSS section below.

.site-footer-block-icon {
   right: -20px !important;
}

result

BSSCommerceB2B_0-1717820994381.png

BSSCommerceB2B_1-1717821007776.png

 

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 9 (9)

BSSCommerce-B2B
Shopify Partner
1749 533 592

Hi @jasminsharp97 

You should try following the instructions below

Step 1: Go to Admin -> Online store -> Theme > Edit code

BSSCommerceB2B_0-1717808796083.png

Step 2: Search for the file theme.css and add this code snippet to the end of the file

2.png

@media screen and (min-width: 1024px) {
    .site-footer-blocks {
        justify-content: end !important;
    }
}

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jasminsharp97
Shopify Partner
44 0 18

That didn't do anything, unfortunately.

BSSCommerce-B2B
Shopify Partner
1749 533 592

I may have misunderstood what you're asking for. Could you clarify how you want the website to look after the modifications, the position of the elements being modified, and it would be helpful if you could provide some images with annotations on the elements

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jasminsharp97
Shopify Partner
44 0 18

I want the menu and the text to all be centered, on every screeen and every size. And even though I see the option to center the menu on mobile and I've chosen that (in the screenshot in my original post) it didn't center it, and nothing changed after I tried the original suggestion you gave either.

BSSCommerce-B2B
Shopify Partner
1749 533 592

Could you please try replacing the previous CSS snippet with this one?

 

@media screen and (min-width: 1024px) {
    .site-footer-blocks {
        justify-content: center !important;
    }
}

.site-footer-block-item, .site-footer-item--information {
    align-items: center !important;
}

.site-footer-block-content {
    text-align: center;
}

 

 Result

BSSCommerceB2B_0-1717813534120.png

If it's helpful, please like and mark it as a solution, thank you

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jasminsharp97
Shopify Partner
44 0 18

Super helpful! I'm most concerned about how it looks on mobile, and the dropdown arrows on the menus on mobile are in the middle of the text. Is there any way we can prevent that from happening?Screenshot 2024-06-07 195135.png

BSSCommerce-B2B
Shopify Partner
1749 533 592

This is an accepted solution.

You please add this CSS section below.

.site-footer-block-icon {
   right: -20px !important;
}

result

BSSCommerceB2B_0-1717820994381.png

BSSCommerceB2B_1-1717821007776.png

 

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jasminsharp97
Shopify Partner
44 0 18

Thank you so much! It worked! If I wanted to only have it centered on mobile can I just change the sizing to @media screen and (max-width: 719px)? Or is there something else I need to do to make it only centered on mobile? The client changed their mind and only wants things centered on mobile

BSSCommerce-B2B
Shopify Partner
1749 533 592

 

You're right, it's totally possible to wrap all the CSS code I mentioned above inside.

@media screen and (max-width: 719px) {
  // css custom
}

and it will only center text on mobile screens, while on tablet and desktop screens, everything will still be left-aligned as it was initially

The final code snippet will look like this

@media screen and (max-width: 719px) {
    .site-footer-block-item, .site-footer-item--information {
        align-items: center !important;
    }

    .site-footer-block-content {
        text-align: center;
    }
    .site-footer-block-icon {
       right: -20px !important;
    }
}

You can also try removing the following CSS snippet because it doesn't affect mobile.

@media screen and (min-width: 1024px) {
    .site-footer-blocks {
        justify-content: center !important;
    }
}

Please like the comment if it's helpful

Best regards.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now