Codeinwp / optimole-wp

30 stars 8 forks source link

Image in mega menu is detected as hero image #780

Open irinelenache opened 8 months ago

irinelenache commented 8 months ago

Description

If I have an image in the mega menu, it will be considered as hero image and will have the fetchpriority="high" attribute. The issue was visible on the user's website (https://vertis.d.pr/i/I3ZlXT) and I managed to reproduce it with Neve Pro's mega menu (https://vertis.d.pr/i/I4fGJM)

Reported here - https://secure.helpscout.net/conversation/2529643356/407273?folderId=2353196

Step-by-step reproduction instructions

  1. Create a mega menu with Neve Pro
  2. Add an individual custom layout that has an image
  3. Check if the image in the mega menu has the fetchpriority="high" attribute

Screenshots, screen recording, code snippet or Help Scout ticket

https://vertis.d.pr/i/I3ZlXT https://vertis.d.pr/i/I4fGJM https://secure.helpscout.net/conversation/2529643356/407273?folderId=2353196

Environment info

WordPress 6.4.3 / Optimole 3.12.5

Is the issue you are reporting a regression

No

irinelenache commented 8 months ago

+1 https://secure.helpscout.net/conversation/2536085583/408091/