Hello,
I need some help to align the header text on this page.
I’ve successfully aligned the headers for other pages with the same code but somehow, it doesn’t work for this particular page.
The header should align right below the store logo like this page: https://ee15bf-83.myshopify.com/pages/about-us
Page that requires help: https://ee15bf-83.myshopify.com/pages/brands
Please advice.
Thanks!
Hello @thatshampooshop
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
#shopify-section-template--17529873072291__main .page-width.page-width--narrow {
text-align: left !important;
margin: 0 62px !important;
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hey Niraj,
Thanks for your help. But I only want to make the change on desktop and not affect the mobile view.
Are you able to assist?
Hello @thatshampooshop
Replace code with this code:
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
@media screen and (min-width:990px){
#shopify-section-template--17529873072291__main .page-width.page-width--narrow {
text-align: left !important;
margin: 0 62px !important;
}
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hey Niraj,
Thanks! It works but is it possible to fix the header alignment if i zoom in and out of the page?
For example, if my page is 100%, it is aligned. But if I zoom out to 80%, it shifts.
Thanks