Home>Support>Widgets Opacity

Widgets Opacity

By Birgit, 9 years ago. Last reply by Daniel, 9 years ago.

How can I change the opacity of the background of some widgets? Can I do this directly in the Attributes of the Widget Style (directly in the settings of the Widget)? If yes, how? Thank you!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Magus
    Hi, I Work Here

    Hi blang13,

    There are a couple of ways to achieve this in the attributes, depending on the required effect. The following will affect the entire widget, including any text or other content:

    opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */
    

    If you want just the background to be opaque then you will need to clear any background colour you have set in the theme options of the widget and use this rgba method instead.

        background: rgba(200, 54, 54, 0.5);
        -pie-background:  rgba(200, 54, 54, 0.5); /* IE8 and earlier */
        behavior: url(PIE.htc); /* IE8 and earlier */
    

    With this the first three numbers are for the colour and the last for the opacity.

    You can get the rgba values for your selected theme colour from here

    http://www.hexcolortool.com/

    If you have more than one widget you wish to do this to then you would be better off assigning the affected widgets a common class name and applying the CSS through Appearance->Custom CSS.

    .mywidgetclass {
        background: rgba(200, 54, 54, 0.5);
        -pie-background:  rgba(200, 54, 54, 0.5); /* IE8 and earlier */
        behavior: url(PIE.htc); /* IE8 and earlier */
    }
    

    Let us know how you get on

    Magus

  2. 9 years, 5 months ago Daniel
    Hi, I Work Here

    Hi Blang13

    Did you have this solved? Kindly confirm

    @Magus much appreciated

    Cheers

  3. 9 years, 5 months ago Birgit

    Hi Magus,

    sorry for late response. Normally I get the thread-messages in my Inbox. This time, it seems, it did not work.
    Thank you so much for your feedback. I just tried it out and everything worked really great. Yipieeeeehhhh!

    Cheers :-)))

  4. 9 years, 5 months ago Daniel
    Hi, I Work Here

    Perfect :-)

    Always feel free to open a new thread whenever you require support

    Cheers

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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More