Title: Eric P.'s Replies | WordPress.org

---

# Eric P.

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Function ‘markdown_script’ not found or invalid name in class-wp-hook.php](https://wordpress.org/support/topic/function-markdown_script-not-found-or-invalid-name-in-class-wp-hook-php/)
 *  Thread Starter [Eric P.](https://wordpress.org/support/users/codeep/)
 * (@codeep)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/function-markdown_script-not-found-or-invalid-name-in-class-wp-hook-php/#post-8873356)
 * ![_(:з」∠)_](https://i0.wp.com/cdn.ericp.cn/wp-content/uploads/2017/03/Makiorz.
   jpg)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Function ‘markdown_script’ not found or invalid name in class-wp-hook.php](https://wordpress.org/support/topic/function-markdown_script-not-found-or-invalid-name-in-class-wp-hook-php/)
 *  Thread Starter [Eric P.](https://wordpress.org/support/users/codeep/)
 * (@codeep)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/function-markdown_script-not-found-or-invalid-name-in-class-wp-hook-php/#post-8849291)
 * Is there anyone that is able to help me QAQ ..or just some direction of suspicions
   for me to modify and test my site.
 * Thanks a lot!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Firelight Lightbox] Make the iframe-popups open a new page at small screens](https://wordpress.org/support/topic/make-the-iframe-popups-open-a-new-page-at-small-screens/)
 *  Thread Starter [Eric P.](https://wordpress.org/support/users/codeep/)
 * (@codeep)
 * [10 years ago](https://wordpress.org/support/topic/make-the-iframe-popups-open-a-new-page-at-small-screens/#post-7330904)
 * After several experiments ..I finally got it!
 * 1. Append target=”_blank” to all iframe-links.
    2. Remove “fancybox-iframe” class
   at small screen devices.
 *     ```
       <script type="text/javascript">
            var pixelRatio = window.devicePixelRatio || 1;
            if(window.innerWidth/pixelRatio < 641 ) {
                 jQuery(document).ready(function(){
                       jQuery(".fancybox-iframe").removeAttr("class");
                 });
            };
       </script>
       ```
   
 * Tested successfully!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Firelight Lightbox] Make the iframe-popups open a new page at small screens](https://wordpress.org/support/topic/make-the-iframe-popups-open-a-new-page-at-small-screens/)
 *  Thread Starter [Eric P.](https://wordpress.org/support/users/codeep/)
 * (@codeep)
 * [10 years ago](https://wordpress.org/support/topic/make-the-iframe-popups-open-a-new-page-at-small-screens/#post-7330900)
 * Many thanks for your help!
 * However, the page has 3 sorts of Easy-Fancybox links respectively as images, “
   fancybox-inline” and “fancybox-iframe”. Disabling the plugin at small screens
   affects the image gallery and inline-links as well.
 * So I come up with a thought that using script in the article and here is the 
   code I use:
 *     ```
       <script type="text/javascript">
                  var pixelRatio = window.devicePixelRatio || 1;
                  if(window.innerWidth/pixelRatio < 641 ) {
                     easy_fancybox_handler = function(){
                          jQuery("a.fancybox-iframe").attr("target","_blank");
                     };
                  };
        </script>
       ```
   
 * But it still worked as disabling the plugin. Is is possible to detect link-type(
   fancybox-iframe) and override it like “easy_fancybox_handler = Null;”?

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