codeep on "[Plugin: Easy FancyBox] Make the iframe-popups open a new page at small screens"

ساخت وبلاگ

Yes you can make that happen.

First, insert that original code snippet you find to disable FancyBox for small screens on your site.

Then, the easiest is to simply give each link that you want to have opened in a new browser window the attribute target="_blank" (in the WYSIWYG post editor, edit the link and find the check box "open in a new tab") ... this will not hinder FancyBox in any way while on smaller screens, where FancyBox is disabled with that original code you found, it will cause the link to open a new tab or window.

If you have too many of those links to edit them manually, try something like this:

<script type="text/javascript">
jQuery("a.fancybox-iframe").attr("target","_blank");
</script>

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 75 تاريخ : دوشنبه 13 ارديبهشت 1395 ساعت: 6:06