New Shopify Certification now available: Liquid Storefronts for Theme Developers

CODE DOESN'T AFFECTS MOBILE VIEW

danielcorrea
Excursionist
56 0 13

Hi, I have made several changes to the code. I want to remove the thin stripes from the borders of the product images and in the images in the descriptions. I also wanted to add a border to the add to cart button. This all works perfectly in the desktop view. However, on mobiles the changes are not visible. It is strange because in the mobile view preview the changes do appear. Please help me.

IMG_0087.jpgIMG_0086.jpgIMG_0085.jpg

Replies 3 (3)
Dan-From-Ryviu
Shopify Partner
5679 1047 1073

Hi @danielcorrea 

Please add this code at the bottom of your base.css file 

.product-form__buttons button.product-form__submit {
    border: 2px solid #131313 !important;
}
.product__accordion .rte img {
    border: unset !important;
}
@media screen and (max-width: 749px) {
.product-media-container.media-fit-cover {
    border: unset !important;
}
}

 

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

danielcorrea
Excursionist
56 0 13

Not working. Any change on my code affects mobile view. Please help

Dan-From-Ryviu
Shopify Partner
5679 1047 1073

Try to push code in theme.liquid file before </head> tag to check

<style>
.product-form__buttons button.product-form__submit {
    border: 2px solid #131313 !important;
}
.product__accordion .rte img {
    border: unset !important;
}
@media screen and (max-width: 749px) {
.product-media-container.media-fit-cover {
    border: unset !important;
}
}
</style>

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now