All things Shopify and commerce
Hello,
I am experiencing an issue with my product card text only on mobile view where the text is over lapping. Can someone please share the code to make the text relative to the image card? Thank you!
Using dawn theme, on a draft theme: https://skmzt94bl2o6uw3j-74563387678.shopifypreview.com
Hi there,
Add the below code to the bottom of global CSS file (Ex: base.css):
@media only screen and (max-width: 750px) {
.collection . slider-mobile-gutter .product-card-wrapper .card--standard .card-
information {
display: grid;
grid-template-rows: 1fr 1fr;
gap: 1em;
}
.collection . slider-mobile-gutter .product-card-wrapper .card--standard .card-
information>*:not(.visually-hidden:first-child)+*:not(.rating) {
text-align: left;
}
}
It will looks like this on mobile:
Hi, I added this to to base.css but it hasn't change anything?
Thank you!
I added this code then removed it but now the code is showing on my website down the bottom!! Can you please help remove it? I am on the same preview. Thank you
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){
.collection .card--standard>.card__content .card__information h3.card__heading{
margin-bottom: 0;
text-align: center;
}
.collection .card-information .price{
text-align: center;
}
}
</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.
Hello, thanks for you help but I would like the title to be left aligned and price right aligned instead of centred. Thanks!
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025