• Client wants full-width content with background image (below title and top menu) on her static front page, with left sidebar displayed on all other pages. Does the Light Roast theme allow this, and if so how can I do it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author crskoglund

    (@crskoglund)

    Hi @cliff3esler,

    Currently there is no way of doing this through the customizer, but there should be! Thanks for the question and feedback. I’ll add it as a feature to the next theme update.

    In the meantime, you could accomplish this by adding the following lines of code to the bottom of the stylesheet:

    .home #secondary{
    display: none;
    }
    
    .home #primary {
    max-width: 100% !important ;
    }
    • This reply was modified 8 years, 1 month ago by crskoglund.
    • This reply was modified 8 years, 1 month ago by crskoglund.
    • This reply was modified 8 years, 1 month ago by crskoglund. Reason: formatting
    Thread Starter cliff3esler

    (@cliff3esler)

    Thanks, I added it at the very bottom and updated, but the home page still shows the sidebar in WordPress. Do I need to uncheck it somewhere for that page?

    Thread Starter cliff3esler

    (@cliff3esler)

    BTW, I know this is off topic, but I also experimented with adding line-height: 137%; in several places (body, p, etc.) to no effect when viewing. Any clues about how to increase bodytext line spacing?

    Theme Author crskoglund

    (@crskoglund)

    @cliff3esler,

    At the very top of the CSS file, you’ll find the following reset code:

    body, html, div, blockquote, img, figure, label, p, h1, h2, h3, h4, h5, h6, pre, ul, ol, li, dl, dt, dd, form, a, fieldset, input, th, td {
        margin: 0;
        padding: 0;
        font-size: 100%;
        outline: 0;
        line-height: 1;
    }

    Delete:

    line-height: 1;

    After which adding “line-height: 137%” to the body styles should work.

    As for the sidebar still appearing on the homepage, I’m not sure why that code’s not working. Do you have your “read” settings set to “Static Front Page”?

    Thread Starter cliff3esler

    (@cliff3esler)

    Chris – An update on each topic for your interest.

    I did get the .home code to work by entering it via Customize > Additional CSS. No idea why it choked when entered via Appearance > editor, but your solution is perfect.

    RE line-height, I already tried exactly what you suggest (again via Appearance > editor, then update) but nothing happened. My attempted workaround was to add an inline style on the first para of the About page, like so:

    <p style="line-height: 150%;"> blahblahblah. </p>
    

    That worked. Interestingly the subsequent paras inherited the change in line spacing, even though they have no visible p wrapper. Go figure. (This is something WP should clarify right up front — why you don’t see normal xhtml coding e.g. <head> when you edit your pages.)

    Anyway, both issues seem resolved, and I’m really grateful for your help. Thanks for being generous with your time. If you have any clout at WP, you might tell them that editor needs work! (plus better help files for the whole area).

    All the best,
    Cliff

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Selective exclusion of sidebar?’ is closed to new replies.