Home>Support>Changing background title separate widget

Changing background title separate widget

Can’t find the answer.. I installed the CSS Site Origin and changed the title background. But it changed all the widgets. How can I change the color of the title background in one specific widget?

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

  1. 6 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Wim,

    Please open the widget you wish to adjust and head over to the widget styles sidebar. Open the Attribute settings group and set the widget class to something you’ll use to reference this widget – for example, title_background-blue and save.

    Then please navigate to WP AdminAppearanceCustom CSS and find the CSS you wrote. Prepend your selector with this class. For example, say my styling is:

    .widget-title {
        background: #00a0ff;
    }
    

    After I add my class, it’ll look like this:

    .title_background-blue .widget-title {
        background: #00a0ff;
    }
    
  2. 6 years, 10 months ago Wim

    Thanks Alex, works! I only don’t understand why it doesn’t work while pasting that code in the css-class of that widget…

  3. 6 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Wim,

    The widget class only allows for a valid HTML Class so it’s not possible to add the CSS there. The CSS Styles field only allows for inline CSS so it’s not possible to use selectors which is why the CSS has to be added externally.

  4. 6 years, 10 months ago Wim

    Thanks Alex!

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