-
AuthorPosts
-
December 1, 2022 at 11:47 am #1374585
Hi there
With the help of this thread I was able to show the blog grid icon permanently. However, my client has spotted that on mobile the icons don’t appear. The desktop browser Responsive Design Mode is not accurate as the icon is there. If you view the site natively on a phone it is missing although this means I can’t diagnose and fix it.
Any help would be much appreciated.
RichardDecember 3, 2022 at 11:17 am #1374884Hi Richard,
Please try to modify this file: wp-content/themes/enfold/js/avia.js then go to line 658-661 and remove this code:
if( $.avia_utilities.isMobile ) { return; }
Clear browser cache and check if it helps.
Best regards,
NikkoDecember 5, 2022 at 11:50 am #1375091Hey Nikko
Thanks for the solution although I couldn’t find that code on line 658. I did find
if($.avia_utilities.isMobile) return; if( $('body').hasClass( 'av-disable-avia-hover-effect' ) ) { return; }
On line 601 but removed, cleared but no luck.
Thanks
RichardDecember 7, 2022 at 7:24 pm #1375418Hi Richard,
I see, please add those removed codes and then please try to add this code at the bottom of your child theme’s functions.php:
function add_overlay_icon_on_mobile(){ ?> <script> var slideImages = document.querySelectorAll('.slide-image'); slideImages.forEach(function(image) { var span = document.createElement('span'); span.classList.add("image-overlay", "overlay-type-video"); span.innerHTML = '<span class="image-overlay-inside"></span>'; image.appendChild(span); }); </script> <?php } add_action('wp_footer', 'add_overlay_icon_on_mobile');
Hope it helps.
Best regards,
NikkoDecember 8, 2022 at 11:11 am #1375499Hey Nikko
Perfect thank you and all fixed. Yes, another reason why Enfold is so awesome — the support always delivers :-)
Richard
December 8, 2022 at 8:06 pm #1375590Hi Richard,
Great, I’m glad that Nikko could help you out, and thanks for the kind feedback :-)
Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardDecember 8, 2022 at 8:06 pm #1375591 -
AuthorPosts
- You must be logged in to reply to this topic.