[Resolved] Solid Gradient Background for Page Headers?

Home Forums Support [Resolved] Solid Gradient Background for Page Headers?

Home Forums Support Solid Gradient Background for Page Headers?

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #346732
    Nicholas

    Hi, I’m using the “Page Header” add-on, on my blog index page, and would like to have it display a gradient color effect, instead of just a solid color. No image is being used. What would be the easiest/cleanest way to make the solid color into a gradient?

    Here’s the page: https://landingpageschool.com/blog/ (see the green area near the top)

    #346756
    Tom
    Lead Developer
    Lead Developer

    You can use a CSS generator like this: https://uigradients.com/#NeonLife

    Then apply it to the header:

    .blog .page-header-content {
       /* CSS in here */
    }
    #346960
    Nicholas

    Wow, that is an awesome resource for gradients! Thanks so much Tom. All good now.

    #347102
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

    #366084
    Nic

    Hi, How do we apply the gradient into the new page header template?
    (so that each header template has different gradient)

    Thanks.
    Nic

    #366119
    Tom
    Lead Developer
    Lead Developer

    You would have to apply the CSS per page to change the gradient for each of them.

    #366167
    Nic

    OK understood, sorry but what’s the CSS class that I should use in each of the header template page? Thanks.

    #366389
    Leo
    Staff
    Customer Support
    #369067
    Nic

    This is what I did but the gradient background didn’t appear on the front end. Where did I go wrong? Thanks.

    View screenshot

    #369079
    Leo
    Staff
    Customer Support

    Any chance you can link me to the page where it’s not working? Thanks!

    #369132
    Nic

    Sure, here’s the page. Thanks.

    #369410
    Tom
    Lead Developer
    Lead Developer

    The Simple CSS box shouldn’t actually appear on the Page Header page – it won’t work unfortunately.

    You’ll need to add the CSS into your global CSS, or onto the actual page Simple CSS box.

    #398631
    Todd

    That is a a really great resource for gradients!

    Can i change the gradient for all of the page headers in my custom css without affecting the url of the image. So in other words the image would be whatever I’ve added in the page header, but I globally change and control the overlay gradient in the custom css?

    if i add the following it knocks out the image because the image url was not there, is there a way to do this?

    .generate-content-header {
        background-image: linear-gradient(0deg, rgba(37,188,158,0.31),rgba(37, 56, 188, 0.31)), url(http://dev768664.customairco.com/wp-content/uploads/2017/10/Mitsubishi-Custom-Air-Heating-Cooling-053.jpg);
    #398711
    Leo
    Staff
    Customer Support

    Not sure what you mean? Are you trying apply gradients on to a background image?

    #398742
    Todd

    I would like to apply a global Gradient overlay to all GP page headers (or a range of page headers if possible) from a custom CSS location BUT KEEP the photo as specified for each GP page header. When I tried to apply a global gradient to all the headers like with the CSS below it seems like the gradient CSS needs to work contain the background image which defeats what I would like to do.

    .generate-content-header {
        background-image: linear-gradient(0deg, rgba(37,188,158,0.31),rgba(37, 56, 188, 0.31));
Viewing 15 posts - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.