Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1222798

    Hi Kreisi Support,

    we have a representation that we can’t explain. On our site we use the portfolio grid. The last added portfolio entry shows a different image size although the post images are all the same size.

    How can we solve the problem of representation?

    Thanks for your answer.

    Best, Tobias

    #1224328

    Hey Tobias,
    Sorry for the late reply and thanks for the login and link to page. So for some reason, the last image is the wrong thumbnail, please see the two links in the Private Content area. We can correct with this script, Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $("#top.page-id-54732 .grid-entry.post-entry-last img").attr("src","https://engelswimpern.de/wp-content/uploads/trainers_evelyn_k-1-300x300.png");
      });
      })(jQuery);
      </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Then clear your browser cache and check.

    Best regards,
    Mike

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