Centering Featured Image
When I create a new news post, the featured image comes out small and aligned right. I would like to make it bigger and centered. Can I change that? I am able to do a little CSS, if that's what is needed.
Examples:
Comments (3)
Are you using the Divi builder on your website?
That's what it looks like from the code.
It's kind of hard to explain how to size and align it without know your setup.
If you are using Divi, you should google Divi image alignment.
If you are using the WordPress block editor, google WordPress block editor image alignment.
If using the WordPress classic editor, google WordPress classic editor image alignment.
Those look to be images within the post, rather than featured images, which I think often go above the title.
On my dashboard, there is a place at the bottom right where featured images are to be placed, and I find they are usually larger than I want, so if you see that and it is not how you placed the featured image, that may work for you.
Sally Gellert
CUC, Westwood, N.J.
UPDATE: On my last post to a site using the CoverNews theme, the featured image (posted using the box on the right, as I described above) is below the title, full width.
Hey tom you can use this css code.
Ex,
/* Center and enlarge featured image */
.single-post .post-thumbnail img {
display: block;
margin: 0 auto; /* Center the image */
max-width: 100%; /* Ensure the image doesn't exceed its container */
height: auto; /* Maintain aspect ratio */
}