Make the iframe-popups open a new page at small screens
-
Hi there~
I am using Easy Fancybox 1.5.7 on WordPress 4.5.1 and everything works just fine.But here comes a scene that I want to pop-up an iframe content at big screens like PC and while at small screens like smartphone I want it open a new page instead.
I checked the forum and only found disabling Easy Fancybox for small screens.
Can I tweak the code to make it happen?
<script type="text/javascript"> var pixelRatio = window.devicePixelRatio || 1; if(window.innerWidth/pixelRatio < 641 ) { Some code here to make all iframe pop-ups open a new page }; </script>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Make the iframe-popups open a new page at small screens’ is closed to new replies.