• merontofino

    (@merontofino)


    Page Links To when ‘Open this link in a new tab’ box is checked.

    The link to a new tab works but I get an error message as below and it messes up my design putting white space at the bottom under the footer.

    Saw your post in GitHub and while I appreciate the colourful language, I didn’t follow if that was a fix. Put it into functions.php and did not correct (I am not a developer obviously.) https://github.com/markjaquith/page-links-to/blob/master/js/new-tab.coffee

    This is the error message:

    (function(){(function(e){var t;t=e.jQueryWP||e.jQuery;return t(function(e){return typeof e.fn.on==”function”?e(“body”).on(“click”,”a”,function(t){var n;n=e(this);if(e.inArray(n.attr(“href”),pltNewTabURLs)>-1)return n.attr(“target”,”_blank”)}):typeof console!=”undefined”&&console!==null?console.log(“Page Links To: Some other code has overridden the WordPress copy of jQuery. This is bad. Because of this, Page Links To cannot open links in a new window.”):void 0})})(window)}).call(this);

    Any chance you could let me know the fix? Love the plugin.
    Many thanks!

    https://www.ads-software.com/plugins/page-links-to/

Viewing 1 replies (of 1 total)
  • Plugin Author Mark Jaquith

    (@markjaquith)

    That’s not an error message — that’s code. Can you link me to an example? Are you running version 2.9.5?

Viewing 1 replies (of 1 total)
  • The topic ‘Open this link in a new tab – jQuery conflict’ is closed to new replies.