• Resolved roxer82

    (@roxer82)


    When you upload an image it ends in your upload folder 3 diferents sizes: “Large size”, “Medium size” and “Thumbnail size”.

    The related post allways shows the “Large size”, even when you configure it to show 4 related in one row, and the rezising let the “Large size” reduced as the “Thumbnal size” (but pointing to the “Large size”).

    Is there any way to make it point to the “Medium size” or “Thumbnail size” to make the posts lighter.

    I’m not a good english speaker, so, forgive me if I’m not being clear.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @roxer82,

    Here is the snippet

    function astra_update_related_posts_thumbnail_default_size( $size ) {
        return 'medium'; // Change the required size here.
    }
    
    add_filter( 'astra_related_posts_thumbnail_default_size', 'astra_update_related_posts_thumbnail_default_size' );

    Let us know if you need more help, otherwise please mark the topic as Resolved.

    Kind regards,
    Herman ??

    Thread Starter roxer82

    (@roxer82)

    Thank you!

    You’re very welcome! We’re glad that we could be of assistance to you.

    Feel free to start a new thread if you there’s anything else related to Astra, we can help you with.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Related Posts with Medium and Thumbnail sizes’ is closed to new replies.