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.

background-image picture and gradient

  • Hello Support,

    how is it possible to have a background-image in the header and a color gradient over this image?

    I could not find an option and also it was not possible with CSS (because only 1 box).

    Thanks, Brigitte

  • Hi there,

    try adding this CSS to your site:

    
    .site-header {
        position: relative;
    }
    .site-header .inside-header {
        position: relative;
        z-index: 1;
    }
    .site-header:after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(131,58,180,0.6) 0%, rgba(253,29,29,0.6) 50%, rgba(252,176,69,0.6) 100%);
    }
    

    This:
    background: linear-gradient(90deg, rgba(131,58,180,0.6) 0%, rgba(253,29,29,0.6) 50%, rgba(252,176,69,0.6) 100%);

    Is the CSS gradient property.
    You can use this site to generate your own:
    https://cssgradient.io

  • THANKS! It seems to work! 🙂

    I used this website https://cssgradient.io, but I did not use “.site-header:after”.

  • Glad to hear that!

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