I manged to fix it. I used the option "Use <picture> tags (preferred)" before and it broke the theme. I am now using "Use rewrite rules" option in settings and it is fixed now.
Hi Phill, we had the same issue, with WP-Rocket, in WebP image implementation via Imagify
So far we have solved it by not using <picture> tags method and moving to "Use rewrite rules" option in settings as mentioned above
Having said that, this is the answer we received from the WP-Rocket support team
I hope this helps for future theme optimizations
If the issue is happening because of WebP display option it means that your theme does not handle <picture> tags as same as <img> tags. When using WebP display option (using <picture> tags), the HTML output is changed by wrapping up <picture> tag on top of <img> tag. The CSS code that handles <img> tag is not applied properly in that case. It would be ideal to contact your theme provider and ask them to check this in more detail, as it would be great improvement for their theme to make full compatibility for using picture tags.
Comments
Please, turn off all of the plugins, refresh your cache and check if the issue still exist.
Thanks
Is there anything else I could help you?
Greetings
Hi Phill, we had the same issue, with WP-Rocket, in WebP image implementation via Imagify
So far we have solved it by not using <picture> tags method and moving to "Use rewrite rules" option in settings as mentioned above
Having said that, this is the answer we received from the WP-Rocket support team
I hope this helps for future theme optimizations
If the issue is happening because of WebP display option it means that your theme does not handle <picture> tags as same as <img> tags. When using WebP display option (using <picture> tags), the HTML output is changed by wrapping up <picture> tag on top of <img> tag. The CSS code that handles <img> tag is not applied properly in that case. It would be ideal to contact your theme provider and ask them to check this in more detail, as it would be great improvement for their theme to make full compatibility for using picture tags.
Thanks for the good work!
Hi @Imaginity,
Thanks for letting us know. We appreciate that.
I have passed this to the dev team, and we will look closely at this topic.
Best regards