Home › Forums › WoodMart support forum › Lack of template support for webp format
Lack of template support for webp format
- This topic has 11 replies, 2 voices, and was last updated 3 years, 7 months ago by Artem Temos.
-
AuthorPosts
-
April 28, 2021 at 2:58 pm #287671
seyedrezabazyar1ParticipantIn the new rules of Google and Gtmetrix, it is better to use the «WEBP» format for images
There are two problems when I put a webpage image on the site
1- Image magnification does not work
In the link below, if you hover the mouse over the image, it will not be magnified. If you click on the image, it will not open
https://www.balyan.ir/product/occupational-health-internship-report-in-behpak-industrial-company/2- Thumbnails do not work
Images must be converted to different sizes(600*600 | 300*300 | 150*150 and…) But it does not workApril 29, 2021 at 6:19 am #287810
Artem TemosKeymasterHello,
You need to update the theme to the latest version 6.0.4. As for the second point, check how it works with the default theme to see if it is related to WoodMart or not.
Kind Regards
April 29, 2021 at 9:35 am #287916
seyedrezabazyar1ParticipantI have updated the template to the latest version.
Problem number 1 is because of the template (woodmart)
Problem 2 is because of WordPressFor example: this code works:
<img class="pswp__img" src="https://www.balyan.ir/wp-content/uploads/2021/04/Behpak-Behshahr-Industrial-Company-Health-Report.webp">
But: This code does not work:
<img class="pswp__img" src="https://www.balyan.ir/wp-content/uploads/2021/04/Behpak-Behshahr-Industrial-Company-Health-Report.webp" style="transform: translate3d(720px, 265px, 0px) scale(0);">
I Thinks, The coding methods are old templates and need to be edited to support webp
April 29, 2021 at 9:42 am #287924
Artem TemosKeymasterThe second code has
style
attribute that scales out the image. Where did you get the first and the second one?April 29, 2021 at 9:55 am #287927
seyedrezabazyar1ParticipantThe image appeared when I disabled the css code
I do not know the solution. But this problem only exists in the form of Woodmart ThemeApril 29, 2021 at 10:26 am #287943April 29, 2021 at 11:37 am #287972
Artem TemosKeymasterPlease, provide us your admin access. If you have a child theme, please, switch to the parent theme temporarily.
April 29, 2021 at 11:44 am #287975
seyedrezabazyar1ParticipantI have taken a full backup
April 30, 2021 at 6:22 am #288190
Artem TemosKeymasterYou are using some additional plugin for WEBP images and it seems to be not compatible with our theme. We have added compatibility for the Imagify plugin at the moment. Note that the WEBP format shouldn’t be shown in the “zoom” popup since this JS library doesn’t work with WEBP. That is why we exclude this image with Imagify from being replaced with WEBP.
Kind Regards
April 30, 2021 at 6:34 am #288194
seyedrezabazyar1ParticipantProblem 1 was solved. you are the best . Thank
Is there a solution for case number 2 ?
April 30, 2021 at 7:21 am #288212
seyedrezabazyar1ParticipantI want to upload webp images directly
April 30, 2021 at 11:57 am #288325
Artem TemosKeymasterWordPress doesn’t support this format yet. The only stable solution we know is to use the Imagify plugin. We don’t guarantee that other plugins would work well with our themes.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register