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.

How To Remove Whitespace From Sidebar Image?

8 years ago · Last reply by BeamX1 8 years ago

Hi!

I am using the SiteOrigin Image widget on my sidebar.

I would love to know how can I remove the whitespace from it?

I want to show only the image (without white frame), see:

Best,
BeamX1

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. BeamX1 8 years, 9 months ago

    Sorry, here is the link to the image: http://imgur.com/a/ITLZK

  2. Alex S Staff 8 years, 8 months ago

    Hi BeamX1,

    This spacing looks to be added by your theme. Please open the widget and tick Full Width. If that doesn’t help or it was already ticked, do you have a public URL where we can take a look at what’s going on?

  3. BeamX1 8 years, 8 months ago

    Hey Alex,

    I have the widget image setting to be full width already.

    Here is my blog: https://ex-restart.de/blog/ …would be great if you could take a look.

    The thing is, that I use your widgets on some of my other sites with another them too, and the developer of my theme helped mto to remove the white spaces so that is shows the full width image.

    That was the code (but it’s not working on this theme):

    #wrapper #sidebar .widget_sow-image .sidebar-widget-inner {padding: 0;}
    #wrapper #sidebar .widget_sow-image .sidebar-widget-inner a, #wrapper #sidebar .widget_sow-image .sidebar-widget-inner a img {display: block; padding: 0; margin: 0;}

    Would be great if you could help.

    Thanks.

  4. Alex S Staff 8 years, 8 months ago

    Hi Beam,

    The theme you’re using is adding the spacing inside of the WordPress widget container. You can remove this padding with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Please add the following CSS:

    .sAs #sow-image-2 .awr.scn {
    	padding: 0;
    }
    #sow-image-2 .sow-image-container {
    	line-height: 0;
    }

    This may look a tad odd though as other widgets in your sidebar will retain the padding. As such, if you would like all widgets to lose their padding, please add the following CSS instead:

    .cnt .sAs .awr {
    	padding: 0;
    }

    You might also need to install the SiteOrigin CSS Editor.

  5. BeamX1 8 years, 8 months ago

    Hey Alex,

    awesome man, your code works!

    Thanks!

    Best,
    BeamX1

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