WordPress.org

Forums

Quark
[resolved] Dimensions of featured images (6 posts)

  1. franckcqfd
    Member
    Posted 2 years ago #

    I use the featured images to illustrate my articles. How do I automatically assign the same dimensions (792x300 px, for example)?

  2. Anthony Hortin
    Member
    Theme Author

    Posted 2 years ago #

    Sorry, I'm not sure what you're trying to do. Could you explain further please. Thanks.

  3. franckcqfd
    Member
    Posted 2 years ago #

    I would to "resize" automatically the featured images, so they are automatically adapted to the width of the pages ;)

  4. Anthony Hortin
    Member
    Theme Author

    Posted 2 years ago #

    The Featured Images already get resized to fit the width of the page (792 x 300px).

    If you want to change this size to something else, around line 51 in functions.php, change the values in the following line...

    add_image_size( 'post_feature_full_width', 792, 300, true );

    The two numbers in that line are the width (792) and height (300) of the Feature Image. Simply change that to whatever width you'd prefer.

    After doing that, install the Regenerate Thumbnails plugin and regenerate the thumbnail images for all your previously uploaded images.

    After you change the above line in functions.php, any new image you upload will automatically get cropped to the new size that you've specified. This plugin will simply regenerate the images that you've already uploaded.

  5. franckcqfd
    Member
    Posted 2 years ago #

    With this plugin, it's perfect ! Thanks ;)

  6. Anthony Hortin
    Member
    Theme Author

    Posted 2 years ago #

    Great to hear! :-)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic