Site logo

[Resolved] Change background of particular widget?

Home Forums Support [Resolved] Change background of particular widget?

Home Forums Support Change background of particular widget?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2191734
    Petar

    Hello, would it be possible to change the background color of a widget(s) by my choice? I need the standard white color removed. If it helps, these are all widgets in the left sidebar.
    thankss

    #2191758
    Fernando
    Customer Support

    Hi Petar,

    If you have GenerateBlocks, you may place your widgets inside a Container Block in Appearance > Widgets > Left Sidebar, and assign a color to the Container as such: https://share.getcloudapp.com/L1uRvN4z

    You may also use WordPress core Block Columns as such: https://share.getcloudapp.com/wbuzL9rO

    Otherwise, you can do it through custom CSS.

    Hope this clarifies. 🙂

    #2191768
    Petar

    huh…considering I am using classic widgets plugin, maybe the best way would be with custom CSS>?

    #2191786
    Fernando
    Customer Support

    I see. May you kindly link us to the site in question?

    Hope to hear from you soon. 🙂

    #2192510
    Petar

    Link added in private information

    #2192519
    David
    Staff
    Customer Support

    Hi there,

    you can use some CSS like so:

    .inside-left-sidebar .widget:nth-child(4) {
        background-color: transparent;
    }

    And if for example you wanted to remove the padding and force an image to fill the width of the sidebar you could do this:

    .inside-left-sidebar .widget:nth-child(4) {
        background-color: transparent;
        padding: 0;
    }
    .inside-left-sidebar .widget:nth-child(4) img {
        width: 100%;
    }
    #2192526
    Petar

    that was fast. thanks

    #2192530
    David
    Staff
    Customer Support

    You’re welcome.
    Sorry forgot to say the 4 is the widget count, so that would apply to the 4th widget in the sidebar. Change the number to suit your needs.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.