• I have just created a single page site with Sketch.

    How can I increase the columns to 2 for posts and show only the image and first line of the post title?

    thank you

Viewing 1 replies (of 1 total)
  • Hi @mariannesuyin!

    The easiest solution (to avoid needing to create a child theme) would be to try doing it with all CSS:

    – make the posts narrower
    – float them side by side
    – add a little spacing
    – hide the post content

    @media screen and (min-width: 800px) {
        .blog .hentry {
            width: 45%;
            float: left;
            min-height: 275px;
        }
        .blog .hentry:nth-of-type(even) {
            margin-left: 5%;
        }
        .blog .entry-content {
            display: none
        }
    }

    This should do the above, plus it adds a minimum width, to prevent any gaps if you have some taller posts (long titles and/or featured images) that would mess up the alignment.

    It also only impacts larger screens, since columns can get awkward on narrow mobile devices 🙂

    To add the CSS, you can use the Additional CSS panel in the Customizer (assuming you’re running at least WordPress 4.7) or with something like the Jetpack Plugin using the Custom CSS Module

Viewing 1 replies (of 1 total)

The topic ‘Increase columns for posts in sketch’ is closed to new replies.