-
randika
I’m currently migrating from the old theme and Elementor to GeneratePress + GenerateBlocks. At the moment, I’m having difficulty replicating one of the hero backgrounds (you can check the staging and live URLs in the private information field).
Could you possibly help me with some custom CSS to make the hero background a dark blue color like on the live site?
Thank you for your help!
-
Alvind
Hi there,
Try adding this CSS:
.hero-jpm { background-image: radial-gradient(at top right, rgba(255, 255, 255, 0) 0%, #1D1359 61%), var(--inline-bg-image) !important; background-position: center; background-size: cover; background-repeat: no-repeat; }
-
randika
Thanks, that worked. How about the hover background color? I tried adding this on hover:
background-image: radial-gradient(at top right, transparent, #100B2D 61%)
But the background image gets covered.
-
Alvind
Try this instead for the hover state:
radial-gradient(at top right,rgba(255,255,255,0) 0%,#100B2D 61%),var(--inline-bg-image) center /cover no-repeat
-
randika
As always, Thanks Alvind!
-
Alvind
You’re welcome! 🙂
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.