• Resolved muckmoney

    (@muckmoney)


    Hi!
    I would like that my blog posts are about 1 average word wider and the right sidebar widget is about 1 average word narrower.
    I believe I have to do some site wide custom CSS, but I do not know what CSS to do or where to put it or anything.
    Can you help me? Where do I need to make the changes?
    I am using Twenty Seventeen Theme.
    I know very little CSS.

    The blog I need help with is lesleyaction.info.
    My Theme is Twenty Seventeen
    I use the Chrome browser
    My operating system is Mini Mac

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In the “Additional CSS” section of the dashboard add this:

    
    @media screen and (min-width: 768px) {
        .has-sidebar #secondary {
            width: 34%;
        }
    
        .has-sidebar:not(.error404) #primary {
            width: 63%;
        }
    }
    

    https://codex.www.ads-software.com/CSS#Custom_CSS_in_WordPress

    Thread Starter muckmoney

    (@muckmoney)

    Hi! Andrew,
    Thanks so very much for your response!
    I am a real chicken with this CSS stuff. This is the first time, I am doing anything like this……
    I went to appearance >> edit CSS and clicked.
    It opened the >> Customising Additional CSS
    There I found this:

    1 .author, .byline {
    2 display: none !important;
    3 }

    Should I simply add exactly what you sent me directly after that? Like this (which will probably add numbers on the side to #9?)

    1 .author, .byline {
    2 display: none !important;
    3 }
    @media screen and (min-width: 768px) {
    .has-sidebar #secondary {
    width: 34%;
    }

    .has-sidebar:not(.error404) #primary {
    width: 63%;
    }
    }

    Lesley

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes try adding it to the bottom of what is already there, like you said:

    
    .author, .byline {
        display: none !important;
    }
    
    @media screen and (min-width: 768px) {
        .has-sidebar #secondary {
            width: 34%;
        }
    
        .has-sidebar:not(.error404) #primary {
            width: 63%;
        }
    }
    
    Thread Starter muckmoney

    (@muckmoney)

    Andrew,
    It worked great!
    If I want the copy even wider and the sidebar even narrow I understand it is the numbers/percentages you used.
    copy 63%
    sidebar 34%

    Question: I just have to increase the copy number and decrease the sidebar number? I just have to keep the total at 97% ?

    Lesley

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Question: I just have to increase the copy number and decrease the sidebar number? I just have to keep the total at 97% ?

    Yes, well you could even increase it to match 100% but there won’t be any space between your text and sidebar. Have a play with it, it won’t take down your site and you can always go in and change the code back.

    Thread Starter muckmoney

    (@muckmoney)

    OK, thanks so much for your help.

    I have another question – something else completely…. should I start another thread?

    Andrew, thanks again! This I learn best. one thing at a time!

    Lesley

    Thread Starter muckmoney

    (@muckmoney)

    not proofing what I write, enough.
    Meant to say: This is how I learn.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes please start a new thread ?? This way when someone googles “How can I do this”, it’s much easier for them to find the solution.

    Thread Starter muckmoney

    (@muckmoney)

    OK
    Thanks again and again!
    Lesley

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘change the width of copy and the sidebar widget’ is closed to new replies.