Support » Theme: Admiral » How to center featured image?

  • Resolved claudiolardo

    (@claudiolardo)


    Hello.
    I would like to center the featured image on any post / article of the site. How can I do this? I have tried a lot of CSS attributes, but unsuccessfully.
    Thank you.
    Best regards
    Claudio

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi Claudio,

    Thanks for using Admiral.

    I’m sorry but I do not understand what you mean. The featured image is automatically centered, because it fills out the whole content area. If not, you have to upload larger images for the featured image.

    Best,
    Thomas

    claudiolardo

    (@claudiolardo)

    Hi Thomas,
    thank you for your reply.
    So, as far as I understood, you are telling me that the featured image must always be larger than a certain size so to fill the whole content area. And, consequently, if I have a smaller image I cannot display it centered, but left aligned in the content area. Aren’t you?
    Is there no chance to align the div of the wp-post-image?

    Ciao
    C

    Theme Author ThemeZee

    (@themezee)

    Yes, exactly.

    You should be able to center smaller images with this CSS snippet:

    .single-post .type-post .wp-post-image {
        margin: 0 auto 0.5em;
        display: flex;
    }

    Best,
    Thomas

    claudiolardo

    (@claudiolardo)

    Great!
    I have tried a lot of CSS combination, but nothing worked. But I did not remember the flex display!
    Thank you.
    This issue can be considered solved.
    Ciao
    C

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