This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: iPhone 7 issue with links in search results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support iPhone 7 issue with links in search results Reply To: iPhone 7 issue with links in search results

#21442
Ernest MarcinkoErnest Marcinko
Keymaster

Hi John,

I’m not sure, maybe there is a 3rd party script that is conflicting somehow, perhaps the click event is interrupted by something, I honestly don’t know.

I think the best possible solution in this case is to try to override the click event via a custom code. Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

add_action('wp_footer', 'asp_add_custom_js', 99);
function asp_add_custom_js() {
  ?>
  <script>
  jQuery(function($) {
    $('.asp_r').on('touchend', '.item', function(e){
       e.preventDefault();
       e.stopImmediatePropagation();
       $(this).find('a.asp_res_url').get(0).click();
    });
  });
  </script>
  <?php
}

This might do the trick. Make sure to clear all layers of cache, including site, page, assets as well as the phone browser cache, otherwise it may have no effect.