Home / Widgets / [IG] iOS Double-Click required to open lightbox fix
Duplicate Snippet

Embed Snippet on Your Site

[IG] iOS Double-Click required to open lightbox fix

This snippet can be added in the functions.php file of a child theme to disable the 'first touch' function that causes the feed to require two presses on some iOS devices to open the lightbox for posts. This is caused by specific host or plugin conflicts.

Code Preview
php
<?php
function sbcustom_disable_firsttouch( $flags, $settings ) {
   $flags[] = 'disableOnTouch';
   return $flags;
}
add_filter( 'sbi_flags', 'sbcustom_disable_firsttouch', 10, 2 );

Comments

Add a Comment