PenciDesign replied
Hi,
If so, please add this codes:
<?php if( ! wp_is_mobile() ) { ?>And:
<?php } ?>
like on this image: http://prntscr.com/rp5wd5
Best Regards,
PenciDesign
Hello,
Thanks for the reply. While this worked to remove the mega menu images from the code it also removed all the sub menu links from mobile where the mega menu images were being used. Please let me know how we can keep the submenu links and remove the mega menu images from the from the code.
Hello,
I would like to remove the mega menu images (posts featured image) from showing in the source code on mobile devices. The mega menu images for posts work great on desktop and they do not visually show in the menus for mobile devices. The issue is that the images source is still in the code and they are drastically reducing my loading time and giving poor Google Page Speed results as well. If you visit our site you will see what I mean.
Please let me know how I can remove the images for the mega menus from loading in the code for mobile devices.
Thanks
Want to join this conversation or access attachments? Sign in first.
Open your ticket archive, review validated licenses, and continue product support conversations from one customer portal.