Hello,
I would like to add a solid black container behind the text and button on the ‘Hero (optional slideshow)’ in the Impulse theme.
So a black box behind ‘Christmas Collection / We’ve got your / Shop now’
Thanks in advance for your help!
A user wanted to add a solid black background container behind text and buttons in the ‘Hero (optional slideshow)’ section of Shopify’s Impulse theme.
Two solutions were provided:
Solution 1 (Made4uo-Ribe):
.hero__text-shadow with black border and paddingSolution 2 (namphan):
.hero__text-shadow with black background and padding using !importantThe user confirmed the solution worked as intended. Both approaches use custom CSS to style the hero text container, with the main difference being implementation location (theme files vs. theme customizer) and styling method (border vs. background).
Hello,
I would like to add a solid black container behind the text and button on the ‘Hero (optional slideshow)’ in the Impulse theme.
So a black box behind ‘Christmas Collection / We’ve got your / Shop now’
Thanks in advance for your help!
Hey @jpat
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hi @jpat
Try this one.
.hero__text-shadow {
border: 1px solid black;
padding: 1rem;
}
And Save.
Result:
Note: Im only using theme demo for this, if it doesnt work please share your store URL. Thanks!
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @jpat ,
Please go to Customize > Theme settings > Custom CSS and add code:
.hero__text-shadow {
background: #000000 !important;
padding: 2rem;
}
Thank you, this is exactly what I was looking for.
Hi @jpat ,
You’re welcome and happy to help ![]()