Full-width blog posts Zuki

  • Unknown's avatar

    I’d like to make my blog posts full width as well as change the line spacing on the blog as a whole, like the full-width pages.

    I did go through the forums to see if the answer was there, but the one code I found didn’t work. So, I would appreciate the help! Thank you for your time.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi Petra,

    Can you try adding the following CSS and let me know how that goes?

    @media screen and (min-width: 1023px) {
    .entry-content, .entry-summary, .blog .entry-meta, .single-post .entry-meta, #comments, #disqus_thread {
        max-width: none;
    }
    
    .entry-thumbnail img.wp-post-image {
        width: 100%;
    }
    }

    We can work on further tweaks from there.

  • Unknown's avatar

    siobhyb:

    Thank you so much for your help. What you gave me was great. That’s a lot better than I had before.

    I want the ‘full-width’ posts to look like full width pages. So, I think if we can get rid of the sidebar, we’d be able to do that.

    Here’s what a full-width page looks like:

    The Sith & the Senator

    and a wider post with the code you gave me:

    https://anunconventionalmind.wordpress.com/2016/05/21/the-sith-the-senator-2/

    The problem that I’ve generally encountered with WordPress.com is that pages cannot be used in the same way blog posts can, in if they could, I would use pages in my Zuki widgets. That would solve a lot of my problems.

    But not only is that not allowed but I can’t link the featured image in my posts or my post titles to full-width pages to get around that. The only thing I can do is attempt to make the posts themselves full-width.

  • Unknown's avatar

    Hi Petra,

    You’re welcome. :) If you add the following, then the post you linked to should display at full width:

    .single-post #primary {
        width: 100%;
    }
  • Unknown's avatar

    That’s absolutely perfect. Thank you very much. :)

    There’s one more thing just in case I ever want to: How do you change the line height?

  • Unknown's avatar

    Hi Petra,

    I’m glad that worked out for you!

    You can change the line-height for individual posts using the following CSS:

    .single-post .entry-content p {
        line-height: 1.9;
    }

    Increments/decrements of 0.1 are enough to have an impact. For example: 1.8, 1.9, 2, 2.1, etc.

    The line-height is currently set to the same value for posts and pages so I wonder if there’s another difference that you’re noticing between the two. Let me know if the above CSS works out for what you’re trying to achieve or if you’d like any further help.

  • Unknown's avatar

    That actually did work, but I want to change it uniformly for the whole site. I’m sorry I didn’t make that clear! Thank you for your help.

  • You can try removing the element targeting single pages:

    .entry-content p {
        line-height: 1.9;
    }

    or I see that you’ve already added:

    p {
         line-height: 1.5;
    }

    Let me know if you’re all set now.

  • Unknown's avatar

    Thank you. That was perfect.

    Be well, guys. :)

  • The topic ‘Full-width blog posts Zuki’ is closed to new replies.