Forums › Forums › Search & Filter Pro › grid results / thumbnails
Tagged: grid
- This topic has 8 replies, 2 voices, and was last updated 6 years, 10 months ago by
Anonymous.
-
Trevor(Private) October 23, 2018 at 11:46 am #191518
Please see this section of the code:
if ( has_post_thumbnail() ) { the_post_thumbnail("small", array('class' => 'gp-post-image gp-large-image')); the_post_thumbnail("thumb", array('class' => 'gp-post-image gp-mobile-image')); }
You appear to be outputting both a small/large and thumbnail image? This is not our standard code, so I guess it comes from your theme. What happens if you load only the second, thumb, imaage?
Anonymous(Private) October 23, 2018 at 12:00 pm #191524Ok it’s done :
<?php if ( has_post_thumbnail() ) { the_post_thumbnail("thumb", array('class' => 'gp-post-image gp-mobile-image')); } ?>
But now the images do not load anymore :
https://www.filmspourenfants.net/Trevor(Private) October 23, 2018 at 12:21 pm #191536They are using the media sizes set in WordPress, and thumbnails are normally square. You would need to add a new media size or re-define an existing one, then change the code to use that size, then use a plugin to re-make all the images in that new size.
Anonymous(Private) October 25, 2018 at 7:50 am #191805Hi Trevor, thank you very much for your help.
I have finally changed the thumbnail sizes in the WordPress settings.
And now I have the perfect size on my homepage:
https://www.filmspourenfants.net/Good day and good luck.
Thanks again. -
AuthorPosts