hi can you help me align the text that says ‘‘3 products’’ to the left for the mobile version only
thank you
Pass: biangu
A user needs help aligning the “3 products” text to the left specifically on mobile view for their Shopify store (matibrnd.com).
Three solutions were provided:
PageFly-Henry’s approach:
base.css file.product-count__text.text-body.h2 with left alignment and 50px left margin@media (max-width: 767px) for mobile-only stylingniraj_patel’s method:
theme.liquid before </body> tag.product-count with flexbox alignment and positioning adjustmentsDan-From-Ryviu’s solution:
theme.liquid after <head> tagAll solutions involve adding custom CSS with media queries to achieve left alignment on mobile screens only. The discussion remains open as the original poster hasn’t confirmed which solution worked.
hi can you help me align the text that says ‘‘3 products’’ to the left for the mobile version only
thank you
Pass: biangu
Hi @MT27
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file → Save
@media (max-width: 767px){
menu-drawer.mobile-facets__wrapper.medium-hide.large-up-hide {
display: none;
}
h2.product-count__text.text-body {
text-align: left !important;
margin-left: 50px !important
}}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Hello @MT27
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
Hi @MT27
I’m Dan from Ryviu: Product Reviews & QA
You can do that by adding this code to theme.liquid file, after in Online Store > Themes > Edit code
Best Regards,
Dan from Ryviu