This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Adding gradient overlay to a panel widget with background image

8 years ago · Last reply by Alex S 8 years ago

Hi there,

i need some help. I am trying to add some css gradient overlay to a widget panel added by the page builder. The widget it self has added a background image here: (Widget Styles -> Design)

HTML with the widget is holding some basic search box.

<div class="hero-search panel-widget-style panel-widget-style-for-153-0-0-0">

CSS

#panel-153-0-0-0 > .panel-widget-style {
        background-image:url(bg.jpg);
        background-position:center center;
        background-size:cover;
}

Gradient

background: #43C6AC;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #F8FFAE, #43C6AC);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #F8FFAE, #43C6AC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

Now how to add this as an overlay to the background image without affecting the widgets inner content? I tried out using ::after and ::before but without luck.

I also tried adding it to the css rule for the background image but this made the image disappear and only showing the gradient.

thanks in advance

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 1 month ago

    Hi Roman,

    I’d like to help you with this, but unfortunately, this is beyond the scope of the support we’re able to offer on our free forums. There is a fair amount of custom work involved.

    We do offer this level of support to our premium users, so if you’d like to upgrade to SiteOrigin Premium, then I can help you over email support.

    If you’d prefer not to upgrade to SiteOrigin Premium, then you can hire a WordPress developer from Codeable. They’ll charge you an hourly rate for any work done.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread