[Resolved] Featured image in Archive page

Home Forums Support [Resolved] Featured image in Archive page

Home Forums Support Featured image in Archive page

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #1238501
    Royal Rangers

    I have two webs with GP Premium. 3 columns layout on archive page and set a featured image width 560px/height 315px. On first web is everything ok, all featured image are crop to 560×315. On second web cropping doesnt´t work. Images having different height. Settings is same. Can you help?

    #1238572
    David
    Staff
    Customer Support

    Hi there,

    is you’re other site using a Lazy Loader ?

    #1238578
    Royal Rangers

    Botu sítě using Lazy loading.

    #1238580
    Royal Rangers

    Both sítě using Lazy loading.

    #1239254
    David
    Staff
    Customer Support

    We’re just about to release GPP 1.10:

    https://generatepress.com/gp-premium-1-10-0/

    This has made an update to the Image resizer which may fix the issue – if not i can do so with some CSS but it may be worth waiting until you update. Let me know

    #1239757
    Royal Rangers

    Hi, works but…
    In customizer I have set 560x315px for featured image in archive page.
    But when my column have example width 410px so image have width 410px but height is still 315px. I mean… when I add video from youtube it works. Video automatically set to 410x230px.
    Problem is probably with different image size… 🙂
    So thanks for help.

    #1240907
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Is there a specific post where we can see this happening?

    #1242111
    Royal Rangers
    #1242243
    Tom
    Lead Developer
    Lead Developer

    Been looking at this. It’s just the way our new CSS resized images work.

    To fix this, I suggest creating your own image size and then choosing it from the Media Attachment Size option: https://docs.generatepress.com/article/adding-image-sizes/

    Then you can empty the width/height options in the Customizer and it will serve the exact size you want.

    #1267672
    Royal Rangers

    I tryed. Problem is probably on my side with different image size…
    Thanks for help.

    #1267763
    Tom
    Lead Developer
    Lead Developer

    No problem – did adding your own image size fix it?

    #1267820
    Royal Rangers

    I add to functions.php but doesn´t work for all images. Maybe I do something wrong.

    #1268060
    Tom
    Lead Developer
    Lead Developer

    So you added the function to your site, then set the image size in Customize > Layout > Blog?

    Make sure you that you regenerated your images after adding the new size as well: https://wordpress.org/plugins/regenerate-thumbnails/

    #1272290
    Royal Rangers

    Yes. I regenerated thumbnails too. But something is wrong.

    #1272830
    Tom
    Lead Developer
    Lead Developer

    Can you share the function you’re using to add the image sizes?

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.