Re: Add a background banner for the newsletter section (diffusion list) on Dawn theme

Add a background banner for the newsletter section (diffusion list) on Dawn theme

Sauron6263
Excursionist
39 0 5

Hello, i would like to add a background banner for the newsletter section (diffusion list) on Dawn theme but there is no such option, i tried to add this code at the bottom of newsletter-section.css : 

.newsletter__wrapper.color-background-image.gradient.content-container.isolate.section-template--15942398640382__16511372724de01edd-padding {
background-image: url(https://cdn.shopify.com/s/files/1/0822/3775/1645/files/MobileGear-newsletter.jpg?v=1711436464) !important;
}

But this is changing nothing the newsletter is still with white background, any ideo to add this ? url : https://mobilegear.fr/password and password : ayohto
Capture d'écran 2024-03-26 090534.png

Replies 14 (14)

Raj-webdesigner
Shopify Partner
343 83 82

1)online Store

2)Edite Code
3) Find newsletter-section.css

This css in Add In Your newsletter-section.css 

 

.newsletter__wrapper {
    background: url(https://cdn.shopify.com/s/files/1/0822/3775/1645/files/MobileGear-newsletter.jpg?v=1711436464);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center center;
}

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


Sauron6263
Excursionist
39 0 5

hey, works fine, the titlle and text in black are not visible, anything else to add to your code to put everything in white to be visible ?

Capture d'écran 2024-03-26 092352.png

Raj-webdesigner
Shopify Partner
343 83 82

put This Code in You Above of them

.newsletter h2.inline-richtext.h1.scroll-trigger.animate--slide-in,.newsletter .newsletter__subheading.rte.scroll-trigger.animate--slide-in p  {
    color: #fff;
}

 

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


Jon_Innovonics
Shopify Partner
24 3 9

Hey there!
You can add something like this:

 

.newsletter__wrapper.color-scheme-1 {
    background: url('https://cdn.shopify.com/s/files/1/0822/3775/1645/files/MobileGear-newsletter.jpg?v=1711436464');
}

 

️ If I was helpful, please Like or Accept the solution


Contact me directly via email: Jonathan@Innovonics.com


 

Jon_Innovonics
Shopify Partner
24 3 9

And I notice the image is a little large so this might make it look a bit better for you:

.newsletter__wrapper.color-scheme-1 {
    background: url('https://cdn.shopify.com/s/files/1/0822/3775/1645/files/MobileGear-newsletter.jpg?v=1711436464');
    background-position: center;
    background-size: contain;
}

️ If I was helpful, please Like or Accept the solution


Contact me directly via email: Jonathan@Innovonics.com


 

Sauron6263
Excursionist
39 0 5

yep, but now the image is split 😁

Capture d'écran 2024-03-26 093431.png

Jon_Innovonics
Shopify Partner
24 3 9

This will add the background image and make the text white:

.newsletter__wrapper.color-scheme-1 {
    background: url('https://cdn.shopify.com/s/files/1/0822/3775/1645/files/MobileGear-newsletter.jpg?v=1711436464');
    background-position: center;
    background-size: contain;
}
.newsletter__wrapper.color-scheme-1 h2 {
    color: white;
}
.newsletter__wrapper.color-scheme-1 .newsletter__subheading.rte.scroll-trigger.animate--slide-in {
    color: white;
}

 

️ If I was helpful, please Like or Accept the solution


Contact me directly via email: Jonathan@Innovonics.com


 

Sauron6263
Excursionist
39 0 5

the size of the banner is good now but the pictures is split in 3

Capture d'écran 2024-03-26 093431.png

Jon_Innovonics
Shopify Partner
24 3 9

My apologies, please update to this:

 

 

.newsletter__wrapper.color-scheme-1 {
    background: url('https://cdn.shopify.com/s/files/1/0822/3775/1645/files/MobileGear-newsletter.jpg?v=1711436464');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}
.newsletter__wrapper.color-scheme-1 h2 {
    color: white;
}
.newsletter__wrapper.color-scheme-1 .newsletter__subheading.rte.scroll-trigger.animate--slide-in {
    color: white;
}

 

 

️ If I was helpful, please Like or Accept the solution


Contact me directly via email: Jonathan@Innovonics.com


 

Sauron6263
Excursionist
39 0 5

and when i add background-size: auto; it is too large

Sauron6263_0-1711439156053.pngCapture d'écran 2024-03-26 094515.png

 

Jon_Innovonics
Shopify Partner
24 3 9

Definitely, that’s why on mine I do background-size: contain;

it should make the image not blow out of proportion. 

️ If I was helpful, please Like or Accept the solution


Contact me directly via email: Jonathan@Innovonics.com


 

Sauron6263
Excursionist
39 0 5

it is okey i fixed it, i added a black semi-transparent background for the white text to be more visible, the problem is that the black arrow to send the email is not visible, i tried a lot of different things to fix it and change the z-index but the arrow is not visible, any idea why ? my code :

/* Styles généraux */
.newsletter__wrapper.color-scheme-1 {
position: relative;
background: url('https://cdn.shopify.com/s/files/1/0822/3775/1645/files/Design_sans_titre_7.jpg?v=1711441121') no-repeat center center;
background-size: cover;
}

/* Ajout d'une couche semi-transparente noire sur toute la section */
.newsletter__wrapper.color-scheme-1::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5); /* Noir semi-transparent */
z-index: -1; /* Placer en dessous de tous les autres éléments */
}

/* Styles pour les titres H2 à l'intérieur de la wrapper */
.newsletter__wrapper.color-scheme-1 h2 {
color: white; /* Couleur des titres en blanc */
}

/* Styles pour les sous-titres et tout autre texte dans la wrapper */
.newsletter__wrapper.color-scheme-1 .newsletter__subheading.rte.scroll-trigger.animate--slide-in,
.newsletter__wrapper.color-scheme-1 {
color: white; /* Couleur de tous les textes en blanc */
}

/* Assurez-vous que la flèche d'envoi reste visible */
.newsletter__wrapper.color-scheme-1 .newsletter__submit-button::after {
content: '\203A'; /* Code unicode de la flèche */
position: relative;
z-index: 2; /* Assurez-vous que la flèche est au-dessus de la couche semi-transparente */
color: black; /* Couleur de la flèche d'envoi */
}

/* Ajustements pour les appareils mobiles */
@media (max-width: 768px) {
.newsletter__wrapper.color-scheme-1 {
background-position: left center;
}
}

Capture d'écran 2024-03-26 105557.png




Raj-webdesigner
Shopify Partner
343 83 82

Add This css 

.newsletter-form__button svg.icon.icon-arrow {
    stroke: #000;
}

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


Sauron6263
Excursionist
39 0 5

working thx !