Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hadingrh

    (@hadingrh)

    Never mind, I’ve already found the solution of my problems. It’s true the codes above works.
    What you have to do, just edit file wp-content/plugins/popup-to-share/mplugin.php, find these lines :

    add_action("admin_menu","menu_popup_comparte");
    
    add_action('wp_print_styles', 'add_stylesheet');
    
    add_action( 'wp_print_scripts', 'enqueue_my_scripts');
    
    add_action("the_content", "banner_ayuda_wordpress");

    and edit to :

    if (!wp_is_mobile()) { 
    
    add_action("admin_menu","menu_popup_comparte");
    
    add_action('wp_print_styles', 'add_stylesheet');
    
    add_action( 'wp_print_scripts', 'enqueue_my_scripts');
    
    add_action("the_content", "banner_ayuda_wordpress");
     }

    You can see the action on Rich Amor Indonesia. Of course , you can see the difference when it viewed on a mobile phone.

    Thread Starter hadingrh

    (@hadingrh)

    May it help someone ??

    Plugin Author Miguelo2008

    (@miguelo2008)

    Thanks Hadingrh,

    This changes is very interesting. I will go to include this code, in the new version. thanks!

    See you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to disable the plugin on mobile phones’ is closed to new replies.