• Is there a way I can set the maximum image width for featured images so it’s not massive? I tried the Simple Image Sizes plugin but it didn’t give me the option for featured images.

    Thank you.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, @jneal95.

    If you just want to control the size of featured images when displaying on the post detail page (frontend side), you can achieve this by easily by adding “max-width” property with a desired value.

    This value can be percentual (%) or in pixels (PX). Just note that percentual sizing will affect the size of every image differently (depending on its actual size). Now, with a fixed value in pixels you are able to prevent images from reaching a certain size, e.g. 900px.

    You just need to add the “max-width” property to the corresponding CSS classes, as follows:

    main.full-width .entry-thumb img { max-width: 912px; }

    Hope that helps!

    P.S. Instructions on how to add it:

    1) On your WordPress Dashboard go to Appearance > Customize.
    2) Locate “Additional CSS” Tab.
    3) On the inside, if the file is not empty, go to the last line and add the CSS code referred above. If the file is empty, just copy the code in the first line.
    4) Remember to click the “Publish” button to save your changes.

    Thread Starter jneal95

    (@jneal95)

    Perfect, thank you! Can I make it centered? I know how to center items with code individually, but how would I tackle this with custom CSS for all featured images?

    Hi again, @jneal95.

    Have a look at this documentation from the official w3 website: https://www.w3.org/Style/Examples/007/center.en.html#block

    It guides you more indepth on how to center images.

    Thread Starter jneal95

    (@jneal95)

    I reviewed this but it does not seem to help with featured images particularly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured Image Maximum Size’ is closed to new replies.