Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Need Help Replicating Hero Background in GP + GBP

  • 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!

  • 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;
    }
  • 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.

  • 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
    
  • As always, Thanks Alvind!

  • You’re welcome! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.