Home>Support>How To Remove Whitespace From Sidebar Image?

How To Remove Whitespace From Sidebar Image?

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 4 months ago BeamX1

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

  2. 7 years, 4 months ago Alex S
    Hi, I Work Here

    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. 7 years, 4 months ago BeamX1

    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. 7 years, 4 months ago Alex S
    Hi, I Work Here

    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. 7 years, 4 months ago BeamX1

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More