• Resolved inikosoft

    (@inikosoft)


    Hello,
    We can’t seem to figure out why images are not showing on mobile. We’ve tried reducing the number of images in the album (I saw that as a possible solution in another support topic) and nothing seems to be working. Any idea why Google Photos would be showing no images on mobile? We are hosted on WP Engine in case that makes a difference.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    You have a JavaScript error on your site – that might be preventing subsequent scripts from executing on certain devices:

    jQuery(function($){
    
    $('.vc_tta-tabs-list a').on('click', function(){
    
      $('html, body').stop();
    });
    });
    
    $cat_query = new WP_Query(
        array (
            'posts_per_page' => 100 ,
            'tax_query' => array(
                array(
                    'taxonomy'  => 'category',
                    'field'     => 'slug',
                    'terms'     => 'uncategorized',
                    'operator'  => 'NOT IN'
                )
            )
        )
    );

    The part beginning with $cat_query = new WP_Query( is breaking your code.

    Thread Starter inikosoft

    (@inikosoft)

    Ah, that was it! I’ll see if I can apply this script to only the pages we need it on. Thank you for your help!

    Plugin Author Sayontan Sinha

    (@sayontan)

    Actually that particular block with the $cat_query is incorrect syntax regardless of which page you have it on. The code is written in PHP, but you have it listed in a JavaScript section, so it will not do what you are expecting it to do in any case and will always result in a page error.

    Thread Starter inikosoft

    (@inikosoft)

    It was in a custom JS file on the site. I’m not sure how it got there but it’s good to know that by removing it we’re not breaking anything. Thanks again for your help with this issue ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images not showing on mobile – Google Photos’ is closed to new replies.