• Resolved Antal Tettinger

    (@antaltettinger)


    Hello Vladimir!

    In the teaser-loop.php on line 11 the image is specified as the_post_thumbnail(”) and it is loading too large images unless I change it to the_post_thumbnail(‘thumbnail’).
    Could you please give feedback or fix that on the next update?
    Thank you!

    Antal

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vova

    (@gn_themes)

    Hi Antal,

    teaser-loop does not have this <?php the_post_thumbnail( '' ); ?>, instead it uses <?php the_post_thumbnail(); ?>. These are different things.

    According to the Codex article here, the_post_thumbnail() uses post-thumbnail as the default value. This predefined size may be different depending on your theme. Please read the article to learn more.

    Thread Starter Antal Tettinger

    (@antaltettinger)

    Thank you for your quick reply Vladimir. Yes I know that, but the thing is that for some reason it only loads thumbnail sized images if I specify ‘thumbnail’. Then it loads the correct thumbnail size image, so I think the thumbnail settings for the theme are fine.

    Otherwise it looks like a thumbnail, but when you check the image file size it loads a larger image if we don’t specify ‘thumbnail’.

    So I am not sure about this if it is a WordPress issue or something else, because it should be the same if I specify thumbnail or if I don’t. Anyway we just keep replacing the file.

    Have a nice day!

    Plugin Author Vova

    (@gn_themes)

    Hi Antal,

    you don’t have to replace the file on each update. Just create a custom template instead. Follow the steps below.

    1. Copy the teaser-loop.php file from /wp-content/plugins/shortcodes-ultimate/templates/ to /wp-content/themes/YOUR_THEME/templates/.

    2. Add the 'thumbnail' parameter to it.

    Thread Starter Antal Tettinger

    (@antaltettinger)

    Big thanks Vladimir! Sorry for the late reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘teaser-loop image size’ is closed to new replies.