Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Shopify Community,
Please I would like to know if there is a way to use Custom CSS to include an Image the Newsletter section on my shopify store.So, I would like to add an image beside the text in my current newsletter section as shown in the initial screenshot. Is there a way to do this through the custom CSS option? Thanks.
Hi @PapaJ0e
This will need liquid and html code, you might need to hire someone to do this for you. If we try to add it using CSS, it will not be editable. If you want to go on the custom CSS route, please provide your website and the image you want to add. Thank you
Thank you for your response!
When you say "it will not be editable" - Do you mean I won't be able to change the image?
Also, will it be responsive for other devices?
If you need to edit it, you will have change the code. Being responsive to other devices depends on the added code and theme
Hi @PapaJ0e
Thank you for the information provided. I am able to achieve the desktop as shown in image below using Custom CSS and the image link connected to this community. However, this becomes messy and troublesome when trying to change the screen size. I would suggest to do this nicely, and use the appropriate codes.
.newsletter__container.spacing--xlarge.remove-empty-space:before {
content: "";
width: 268px;
height: auto;
aspect-ratio: 1;
position: absolute;
left: 500px;
top: 80px;
display: block;
background-image: url(https://community.shopify.com/c/image/serverpage/image-id/378653i7A496081DEB0908B/image-size/large?v=v2&px=999);
background-size: 268px;
background-repeat: no-repeat;
}
.newsletter__container.spacing--xlarge.remove-empty-space {
margin-left: 41.2%;
padding: 3rem 1rem;
background: #3150a2;
border-radius: 0px 10px 10px 0px;
}
See result below in desktop:
Wow, thanks! I'll try this now! and this is responsive for the other devices too?
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024