Tagged: responsive
-
AuthorPosts
-
January 4, 2021 at 2:33 pm #1270155
Hi,
All thumbnails aren’t responsive, unfortunately, i.e. in a category, in a post slider etc.
Could you please help me to fix that issue?
I can send you screenshots if you need them.
Enfold ver. 4.7.6.4
PHP ver. 7.3.25
WordPress ver. 5.5.3Thanks a lot.
January 5, 2021 at 4:13 am #1270300Hey jewsforjesus,
Could you post a link to where we can see this problem on your actual site please? You can upload screenshots to a service like Google Drive or Dropbox, then link to them here.
Best regards,
RikardJanuary 5, 2021 at 1:47 pm #1270395Hi Rikard,
Thanks for answering.
Please find attached links in the private message.
Thank you.January 6, 2021 at 6:19 am #1270526Hi,
Thanks for the update and screenshots. I’m not sure I understand what is wrong with your images though, could you try to explain the problem a bit further please?
Best regards,
RikardJanuary 6, 2021 at 11:51 am #1270581Hi Rikard,
As you can see, images aren’t responsive, the text on them has cropped as well as the image itself.
As an example, I upload two images to Google Drive again and you can compare them, original and cropped.
You can find another two images on Google Drive.
Thank you.January 8, 2021 at 1:02 pm #1271034Hi Rikard,
Could you please give me your answer?
Thank you.
January 8, 2021 at 2:08 pm #1271062Hi,
Sorry for the delay. The grid in the archive page is currently using the portfolio thumbnail and by default, the crop option for this thumbnail is enabled, so images may get cut off if the original image does not have the same aspect ratio as the thumbnail. If you want to prevent this from happening, you have to disable the crop option for the portfolio thumbnail. To do that, we have to add this snippet in the functions.php file.
function ava_enfold_image_sizes() { remove_image_size('portfolio'); add_image_size('portfolio', 495, 400, false ); } add_action('init', 'ava_enfold_image_sizes');
After adding the snippet, try to refresh the page, then upload the images again or regenerate the thumbnails using the following plugin.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelJanuary 8, 2021 at 6:22 pm #1271131Hi Ismael,
Thank you so much!
Have a good day :-)January 10, 2021 at 6:35 am #1271301 -
AuthorPosts
- You must be logged in to reply to this topic.