Ready to get started?Download WordPress


Feature A Page Widget
[resolved] Setting a fixed .fpw-featured-image (4 posts)

  1. xdavidliux
    Posted 1 year ago #

    First of all, I like to thank you for this great plugin. It is a great way of featuring pages which is what I have been looking for. Thank you for contributing.

    I am looking to set a fix featured image size of 314px by 236px instead of dynamically resizing them. The reason being that my featured pages are Galleries and they have different sizes. I have tried adding the following in the styles.css but it does not give me the size I want:

    .fpw-layout-wrapped .fpw-featured-image {
    width: 314px;
    height: 236px;

    Yes it does give me the correct width for both portrait and landscape oriented featured image, but does not give the correct height.

    I understand the solution may distort the image a little but I can accept that. Probably a hard-crop solution is also possible.

    Please advice. Thank you very much!


  2. mrwweb
    Plugin Author

    Posted 1 year ago #

    Hi @xdavidliux,

    I'm glad you like the plugin.

    Did you take a look at this forum thread

    I think that may answer your question. If doesn't, let me know.

  3. xdavidliux
    Posted 1 year ago #

    Hi again mrwweb,

    I followed the instructions posted to the letter and it works like a charm.

    It didn't work for me previously because I was working with images that were uploaded. Instead of deleting and re-uploading, I just deleted and re-set the featured image with the ones that were already in the server. <-This kept the same settings because it did not go through the functions.php

    I highly appreciate your kind help and for contributing to the community.

    Thanks a lot!

  4. mrwweb
    Plugin Author

    Posted 1 year ago #

    Glad you were able to figure it out.

    In the future, you can use one of the plugins mentioned on the plugin's front page (See: "A Word About Image Sizes") to autoresize your photos.

    If you have 30 seconds, please consider filling out the plugin's future feature/options poll to help me determine features to add in upcoming versions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic