Title: simonalwild's Replies | WordPress.org

---

# simonalwild

  [  ](https://wordpress.org/support/users/simonalwild/)

 *   [Profile](https://wordpress.org/support/users/simonalwild/)
 *   [Topics Started](https://wordpress.org/support/users/simonalwild/topics/)
 *   [Replies Created](https://wordpress.org/support/users/simonalwild/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/simonalwild/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/simonalwild/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/simonalwild/engagements/)
 *   [Favorites](https://wordpress.org/support/users/simonalwild/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using CloudFront will not render the mobile version of site from same domain](https://wordpress.org/support/topic/using-cloudfront-will-not-render-the-mobile-version-of-site-from-same-domain/)
 *  [simonalwild](https://wordpress.org/support/users/simonalwild/)
 * (@simonalwild)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/using-cloudfront-will-not-render-the-mobile-version-of-site-from-same-domain/#post-9246294)
 * I would recommend to use mobile detect php library as it works on cloudfront,
   I found this works better than the standard wordpress functions for checking 
   mobile/tablet, it is well document and has additional features. Just follow the
   instructions and use within your php code:
 * [http://mobiledetect.net/](http://mobiledetect.net/)
 * There is a a WordPress plugin for this as well, but it hasn’t been updated in
   two years:
 * [https://wordpress.org/plugins/wp-mobile-detect/](https://wordpress.org/plugins/wp-mobile-detect/)
 * Hope this helps.
    -  This reply was modified 8 years, 11 months ago by [simonalwild](https://wordpress.org/support/users/simonalwild/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smart Popup by Supsystic] JavaScript Method to disable Supsystic popup](https://wordpress.org/support/topic/javascript-method-to-disable-popup/)
 *  Thread Starter [simonalwild](https://wordpress.org/support/users/simonalwild/)
 * (@simonalwild)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-method-to-disable-popup/#post-8854593)
 * For now I have done this hack:
 *     ```
       jQuery(document).ready(function(){
         jQuery("#gform_submit_button_15").click(function(){
           localStorage.setItem('popup_submitted', true);
         });
         if(localStorage.getItem('popup_submitted') !== null) {
           if(jQuery( "#gform_confirmation_message_15" ).length){
             // on confirmation page.
           } else {
             jQuery("#ppsPopupBgOverlay").addClass('hidden');
             jQuery(".ppsPopupListsShell").addClass('hidden');
           }
         }
       });
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)