This members-only tutorial provides the steps to make links to external sites automatically open in new a tab/window using jQuery in Oxygen.

Step 1

Edit your Main Catch-all Template with Oxygen editor.

Step 2

Add a Code Block element at the end below all other elements.


    // echo "hello world!";


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($37/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.

One comment on “How to open external links in new tabs in Oxygen”

  1. Thank you so much! I was working with many external links and to put each one in rich text would have been a ton of work… I can’t tell you how helpful this is! You really are THE BEST! Thank you!

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: