• Hi there,

    I am working on a website/blog and am using Widget Logic so that I can post different testimonials on each static page. I have added backgroud color to each widget to add contrast, however the color doesn’t extend to cover the widget 100%

    Does anyone know how to fix this?

    The code I have used in widget logic for the color is:

    <div style=”background-color:#0a72bf;”>

    I should add that I am a total newbie to this and I have only a very basic understanding of php, css etc.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • is this really about the Widget Logic plugin, or were you using the phrase more generically? (I can’t see how the problem relates to the plugin)

    Thread Starter Newbiewordpresser

    (@newbiewordpresser)

    Hi there,

    I guess it could be more generically. I am looking to insert background colour to a widget (I just happen to be using Widget Logic), however, when I use the above code, the colour doesn’t cover the entire box of the widget box and I end up with colour and a white border around the colour.

    Any tips would be greatly appreciated!

    Thanks!

    You don’t need this plugin to do this. Just create a style in your style.css file for the color. Something like this:

    (as widgets traditionally appear in <li> tags)

    #sidebar li {
    color: #0a72bf;
    }

    Change #sidebar to match the ID of your sidebar (which is often just called #sidebar anyways). If your widgets aren’t in </li> tags, change that to whatever you put them in.

    Hope that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widget Logic background color not extending to cover full widget space’ is closed to new replies.