• Resolved rpmtl22

    (@rpmtl22)


    Is it possible to increase the spacing between multiple posts in the “Latest Posts” widget, either above the featured image or below the post content excerpt? I’m just trying to visually separate the sections a bit (5-10px).

    In the Theme handbook’s Spacing section I found a reference to some code I could add to the theme.json file:

    {
    	"version": 2,
    	"settings": {
    		"spacing": {
    			"margin": true,
    			"padding": true
    		}
    	}
    }
    

    but I’m not sure if this will work with Twenty Twenty-four and provide those options to change the spacing inside the Latest Posts widget.

    Is that the recommended route (other than add 5px of white to the top of blog featured images).

    Thanks for any help with a solution ??

    • This topic was modified 7 months, 2 weeks ago by rpmtl22.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @rpmtl22! Have you tried using the Query loop block, which gives you much more control?

    The query loop has a ‘post template’ block inside, which lets you build out how each posts in the list will be. You can add a spacer block, or a margin, to the Post template block to add space.

    Thread Starter rpmtl22

    (@rpmtl22)

    Thank you Kavya. It’s exactly what I was looking for ??

    That’s one less thing to learn about designing with WordPress … so much more still to come …

    R

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to modify Latest Posts Widget spacing’ is closed to new replies.