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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #14502

    How do I center the featured image in a Post. Currently, the image aligns to the left side of the column. Due to the variety of image sizes, it would look better on my site to have the image centered in the post.

    Sushil Adhikari

    When you insert an image in your post content, in the image window near the lower right is the option to align an image left, right, center.


    Does not seem to apply to the “Featured Image” for the post. Definitely works when inserting an image into your text, etc.


    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;

    Sushil Adhikari

    Actually…I just looked at the source code on my local test site after testing a smaller image. Not sure what happened but before it was working…however, the image is loading outside of its container which is why it’s not centering. I have to fix this.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.