Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi there, which layout option are you using? Double sidebar? Single?

    Thread Starter Rachid Cherif

    (@rachid-cherif)

    hi Alex

    Single sidebar my website is marrakech

    thanks

    Thread Starter Rachid Cherif

    (@rachid-cherif)

    hi
    please, how to reduce the width of the primary sidebar. I use Single sidebar

    thanks

    Hi, I posted on this topic in another thread and thought it may be helpful here?

    I’ve done a bit of fiddling around and changed the primary sidebar width. I’m not sure if it is the best way to do it, but it seems to work for me.

    I’ll put the .css code here and you can try it out yourself, changing the values to whatever suits you. ??

    .col-2cl .main-inner { background: url(img/sidebar/s-right-s1.png) repeat-y right 2; background-size: 260px; padding-right: 240px; background-position: right top;}
    .col-2cl .content { float: left; }
    .col-2cl .s1 { float: right; margin-right: -240px; margin-left: -200px; }
    .s1 { width: 260px; }

    Cheers

    Thanks for sharing Dave!

    Thread Starter Rachid Cherif

    (@rachid-cherif)

    Hi davestone / Alexander

    it helped me a lot thank you to you all
    Great Theme I love it

    For me, this code constrains the primary side bar text and shrinks the colored top bar with “Follow”. However, it doesn’t allow the main center column to widen.

    My site: https://www.fastinfastout.com/

    This code works for me. I included the note to myself to remember that whatever width I choose must add up to 340 with the padding:

    /* 3 column, content middle
    padding left plus background must add to 340 */
    
    .col-3cm .main-inner { padding-left: 290px; background-position: -50px 0; }
    .col-3cm .s1 { margin-left: -290px; }
    .s1 { width: 290px; }
    @media only screen and (min-width: 479px) and (max-width: 960px) {
    .s1-expand .s1 { width: 290px; }
    .s1-expand .s1 .sidebar-content,
    .s1-expand .s1 .post-nav { min-width: 290px; }
    }

    Nice agershon this is what i looking for

    Neither one of the solutions posted work… still end up with the same width…must be missing something here

    Try this:

    .col-3cm .main-inner { background-position: -80px 0; padding-left: 260px; }
    .col-3cm .s1 { width: 260px; margin-left: -260px; }

    This is for col-3cm, which means one sidebar on each side.

    Hiya.

    I have a skyscrape-add from Adsense in my left sidebar. It’s 160×600. I’ve tried the recent code you posted in here and I’ve tried changing the numbers. But I can’t get it correct.

    I want the sidebar to be as close at 160 as possible and I want the entire ad to show ??

    Can someone help me out?

    It’s located at https://www.latenightapple.se.

    Thanks in advance!

    please take a look at my site &
    help me to get rid of the grey bar,
    https://iamandroider.com/

    Thank you in advance

    Can you please mention what file should I edit with this code?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘reduce the width of the primary sidebar’ is closed to new replies.