My image + text sections have a light gray outline border. How do I remove this?
Here is the store link: https://nattlig.no/products/nattligputen
Here is a screenshot:
A user encountered unwanted light gray border outlines on image and text sections in their Shopify store and sought removal guidance.
Solution Provided:
Multiple experts offered nearly identical solutions:
theme.liquid file</head> tag to remove bordersCSS Approaches:
.product-media-container with border: 0 using media query @media only screen and (max-width: 749px)main.css (or base.css/style.css) at the bottomKey Steps:
theme.liquid</head> tagAll respondents included screenshots demonstrating the before/after results and requested the user mark helpful responses as solutions.
My image + text sections have a light gray outline border. How do I remove this?
Here is the store link: https://nattlig.no/products/nattligputen
Here is a screenshot:
Hey @Nattlig
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, donβt forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Step 1: Go to Shopify Admin β Online Store ->Theme β Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
Result:
Hi @Nattlig
is this for mobile only? For the mobile:
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
@media only screen and (max-width: 749px){
.product-media-container.media-type-image.media-fit-cover.global-media-settings {
border: 0;
}
}
And Save.
For both mobile and dekstop:
Same Instruction.
.product-media-container.media-type-image.media-fit-cover.global-media-settings {
border: 0;
}
And save.
result:
Please donβt forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @Nattlig
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Richard | PageFly