Hello,
I am facing the following issue. I want to center my product pictures and also my footer texts. As you can see the product pictures and the footer menus and texts are slightly to the left:
Topic summary
A user seeks help centering product images and footer text on their Shopify store. The product images appear slightly left-aligned, and footer menus/texts are not centered.
Solutions Provided:
Two support contributors offer CSS code snippets to address the issues:
-
For product centering: Add CSS to
theme.liquidormain.css/base.csstargeting the product slider and grid items withjustify-content: centerandtext-align: center -
For footer alignment: Apply
text-align: centerto footer block elements and scroll-trigger items
Complication:
One contributor notes the products appear left-aligned because there are only 3 items instead of 4 in the grid, suggesting either adding another product or using the provided CSS fix.
Current Status:
The solutions partially work, but create a new problem: footer menu texts (“About us”, “Contact us”, etc.) that were previously left-aligned are now centered, which the user doesn’t want. Additional CSS is provided to address margin issues, but the discussion remains unresolved regarding restoring the original footer menu text alignment while keeping other elements centered.
Hello @PabloPier
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
Yes, here it is https://www.pablopier.com/
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hi @PabloPier
I check your store, the product already align into center. But on the product your lacking 1 product it must be 4 product so it level. So it showed look like in the left.
If you dont have plan to add you can check this code.
- From you Admin page, go to Online Store > Themes
- Select the theme you want to edit
- Under the Asset folder, open the main.css(base.css, style.css or theme.css)
- Then place the code below at the very bottom of the file.
.contains-card--product {
justify-content: center;
}
- And save. For your footer text.
.footer-block.grid__item.scroll-trigger {
text-align: center;
}
- And Save.
- Result:
Still the same.
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
The texts like “About us”, “Contact us” etc. are not centered anymore like they used to be.
Oh i centered it, as you requested.





