How to set TARGET ATTRIBUTE for custom links in editor

I wonder how to set a target attribute to a custom link in actual editor exp. in a post, an attribute like _blank _parent and others.

Right now all links are opened in a NEW window, even links targeting content on site.

  • 438
  • More
Replies (3)
    • Hello @Peter !

      The following JQuery technique may be utilized to enhance the functionality of your website. To implement this, add the RAW block containing the content like:

      <script>

        $('a[href^="[your UNA URL site]"]').removeAttr("target");

        </script>

      to the Studio->Pages->Posts->View Post page, immediately following the Post Text block.

      • Thx Leonid, will test the block as soon as possible and report...

        • Thank You again Leonid for this snippet! But this is not really convenient at all to set custom blocks on all pages to set the target value of a link :(

          Is there a chance to get this done in the editor while setting the link? I like the new editor but this link target issue is a real pain, especially when linking to ''local content''

          Login or Join to comment.