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.

Changing background title separate widget

8 years ago · Last reply by Wim 8 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Alex S Staff 8 years, 3 months ago

    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. Wim 8 years, 3 months ago

    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. Alex S Staff 8 years, 3 months ago

    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. Wim 8 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread