• Hi,
    I have WordPress 6.3.1 and Prelude theme. On my website, I created a category subpage where posts are shared. I ran into a problem with post graphics. Namely, the photo used as the “cover” of the post when it is displayed in the preview of a given post on the category subpage, instead of being fully scaled and displaying the full photo only in smaller sizes, it is cropped. I don’t really know how to solve it. Could someone please help me?
    Thank you in advance!

    • This topic was modified 1 year, 2 months ago by stvnley.
    • This topic was modified 1 year, 2 months ago by stvnley.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Please provide a link to the page you’re having trouble with.

    Thread Starter stvnley

    (@stvnley)

    Here: https://investresponsibly.com/

    The problem is currently visible only in the article “Nine investing principles” (Invest responsibly tab). This is due to the fact that in the other articles I used graphics with dimensions of 1024×400, but they do not fully fill the space on the article page. After loading graphic with the correct dimensions of 1170×400 (such as in the mentioned article), then the graphics are cropped at preview.

    It looks like your theme is specifically outputting a smaller image size named prelude-post-standard.

    Because Prelude is a commercial theme from ThemeForest, I cannot access its code to see exactly what it’s doing. The best course of action would be to use the support channel for that theme.

    But if you want to give it a try yourself, you should be able to find a function that looks something like this in either category.php or archive.php of your theme:

    <?php the_post_thumbnail( 'prelude-post-standard' ) ?>

    You can change prelude-post-standard to a different size, such as full (to show the full image).

    Of course, your theme could be doing something totally different in the code, and I have no way of seeing what it’s doing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cropped image for post preview’ is closed to new replies.