How to make all links open in new tab?
  • 07 Nov 2022
  • 1 Minute à lire
  • Contributeurs
  • Sombre
    Lumière
  • PDF

How to make all links open in new tab?

  • Sombre
    Lumière
  • PDF

There is no French content available for this article, You are viewing the fallback version (English).

When you insert a hyperlink in the article, an option is available to make the hyperlink open in a new tab. There is no option in the Knowledge base portal to open all hyperlinks in knowledge base articles in a new tab. You can follow the below workaround to make all the hyperlinks open in a new tab.


Solution

  1. Go to SettingsKnowledge base siteCustom CSS & JavaScriptCustom JavaScript
  2. Paste the below snippet
jQuery(".content_block_text a").attr("target", "_blank"); 
  1. Click Save

The hyperlinks in your article will open in a new tab now.


Cet article vous a-t-il été utile ?