Hello,
Someone could help me how to center title in this section pls ![]()
A user seeks help centering a title in a specific Shopify section, providing a screenshot for reference.
Two solutions were offered:
Solution 1: Insert CSS code in theme.liquid file above the </head> tag to center the title. A result screenshot was provided showing the centered title.
Solution 2: Add CSS code before the </body> tag in theme.liquid targeting the .distance class with justify-content: center !important.
Both responses include step-by-step instructions for accessing the theme code editor through Shopify Admin → Online Store → Theme → Edit code. The discussion remains open as the original poster has not confirmed which solution worked or marked an accepted answer.
Hi @elise1 ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
Hello @elise1
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
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.