Reply To: Center Featured Image in Post

Home Forums WordPress Themes – Premium Luminescence Center Featured Image in Post Reply To: Center Featured Image in Post

#18875

I inserted this code into my Child Theme Stylesheet and it did the trick. Whether this is the best solution, I am not sure but it seems to work so far.

img.wp-post-image {
max-width: 100%;
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
display: inherit;
margin:0 auto;
z-index:5;
}