Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.
    Richard

    #1374884

    Hi 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,
    Nikko

    #1375091

    Hey 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
    Richard

    #1375418

    Hi 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,
    Nikko

    #1375499

    Hey Nikko

    Perfect thank you and all fixed. Yes, another reason why Enfold is so awesome — the support always delivers :-)

    Richard

    #1375590

    Hi 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,
    Rikard

    #1375591

    Hi 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,
    Rikard

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.