is there a way to add a custom background to the newsletter sections? its plain colors now but want to add custom images for better style.
let me know if u can help!!
website - https://the-style-luxe.myshopify.com/
password - reucho
A user seeks to add a custom background image to their Shopify store’s newsletter/email signup section, which currently displays only plain colors.
Multiple solutions provided:
base.css file (found under Online Store → Themes → Edit Code → Assets folder).newsletter__wrapper or .newsletter__wrapper.content-container classbackground-image: url('your-image-url'), background-size: cover, background-position: center, background-repeat: no-repeatCurrent issue:
One user reports the CSS solution works on desktop but fails on mobile devices. The discussion remains open with no resolution yet provided for the mobile responsiveness problem.
Note: Several code snippets and URLs in the thread appear reversed/encoded, but the core technical approach is clear.
is there a way to add a custom background to the newsletter sections? its plain colors now but want to add custom images for better style.
let me know if u can help!!
website - https://the-style-luxe.myshopify.com/
password - reucho
Hi @hasanali1 ,
You can add a background image to the footer by following the instructions below.
From your Admin page, go to Content, then Files
Upload the image you need.
Copy the link on the image. See image below
Add the CSS below
From the Admin page, go to Online store > Themes > click the three dots > edit code
Open the base.css file under the Asset folder
Add the code below at the very end
NOTE: Change the link, “https://cdn.shopify.com/s/files/1/0631/2057/2661/files/made4uo-logo_circle.png?v=1679531426”
.newsletter__wrapper.content-container {
background-image: url(https://cdn.shopify.com/s/files/1/0631/2057/2661/files/made4uo-logo_circle.png?v=1679531426);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
it’s definitely possible to add custom images as backgrounds to your newsletter sections on your Shopify store.
To do this, you will need to add some CSS code to your website. Here’s an example of what the code should look like:
.newsletter {
background-image: url('https://www.yourimage.com/yourimage.jpg');
background-size: cover;
}
In the code above, replace “https://www.yourimage.com/yourimage.jpg” with the URL of the custom image you want to use as your newsletter background. You can also adjust the “background-size” property to control the size of the image.
Once you’ve added the CSS code to your website, your newsletter section should have a custom image as the background.
Step1: Go to online store → Edit code
Step2: Search base.css file
Step3: Paste below code bottom of the css file → save
.newsletter__wrapper {
background-image: url('https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg');
background-repeat: no-repeat;
width: 100%;
background-position: center center;
background-size: cover;
}
This code worked great but not on mobile.. Any idea how to fix it?
This doesn’t work on mobile. Can you fix it?