Shopify themes, liquid, logos, and UX
Hi, Could I have some code to centre the "your cart" "continue shopping" and order "special instructions" headers but only on mobile thanks.
website is www.stagtis.com
Solved! Go to the solution
This is an accepted solution.
Hi @Stagtis ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
@media(max-width:767px){
cart-items .title-wrapper-with-link{
justify-content: center !important;
}}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
@Stagtis Please follow below steps to display "your cart", "continue shopping" and order "special instructions" texts in the center of the cart page for mobile view alone. Let me know whether it is helpful for you.
@media screen and (max-width:450px){
cart-items .title-wrapper-with-link {
flex-direction: column;
align-items: center;
}
.cart__footer .cart__note label[for="Cart-note"] {
width: 100%;
justify-content: center;
}
}
Now the texts will look like below,
This is an accepted solution.
Hi @Stagtis ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
@media(max-width:767px){
cart-items .title-wrapper-with-link{
justify-content: center !important;
}}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
@Stagtis Please follow below steps to display "your cart", "continue shopping" and order "special instructions" texts in the center of the cart page for mobile view alone. Let me know whether it is helpful for you.
@media screen and (max-width:450px){
cart-items .title-wrapper-with-link {
flex-direction: column;
align-items: center;
}
.cart__footer .cart__note label[for="Cart-note"] {
width: 100%;
justify-content: center;
}
}
Now the texts will look like below,
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025