• Resolved joeborders

    (@joeborders)


    Hello! I have my classifieds section of my site all set up now! thank you! ^_^
    But I’ve noticed that if an ad has more than 3 pictures in its gallery, the right and left buttons to scroll through the thumbnails aren’t working on mobile. I’m using a samsung galaxy and chrome if that helps at all.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    this seems to be a bug in WPAdverts, it will be fixed in the next WPAdverts release (as we will be changing the ALS script which handles the gallery), in the meantime, you should be able to fix it by adding the code below in your theme functions.php file

    
    add_action( "wp_footer", function() {
    ?>
    <script type="text/javascript">
    var ismobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
    if(typeof adverts_frontend_lang !== 'undefined' && ismobile ) {
        adverts_frontend_lang.als_visible_items = 2;
    }
    </script>
    <?php
    }, 100000 );
    

    BTW. I noticed your forms have white borders which makes the WPAdverts inputs opaque (in [adverts_add] here https://sacwellness.com/create-a-classified-listing/), you should be able to fix that as well by adding the code below in wp-admin / Appearance / Customize / Additional CSS panel

    
    .adverts-form input[type="text"] {
        border: 1px solid silver !important;
        background-image: none !important;
    }
    
    Thread Starter joeborders

    (@joeborders)

    Dude, Greg. You are so awesome! T_T thanks again! ^_^

    Plugin Author Greg Winiarski

    (@gwin)

    Sure, no problem :).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘gallery scroll arrows not working on mobile’ is closed to new replies.