- This topic has 1 reply, 2 voices, and was last updated 4 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘Featured Post Image’ is closed to new replies.
Tagged: featured image position
Is there a way to align the featured image in posts? It’s left aligned now, which would not be terrible, if the writing were beside it. It’s not. All the writing comes after. How can I either center the featured image or have beginning of writing beside the post? Thank you for your help.
The following is custom CSS to be added to Additional CSS in the customizer.
To center the image use this:
.single-entry-content .wp-post-image {
clear: both;
display: block;
margin: 0 auto 1.5em auto;
}
To align it left with the text content wrapped from beside the image:
.single-entry-content .wp-post-image {
float: left;
margin: 0 1.5em 1.5em 0;
}