How to make all links open in new tab?
- 07 Nov 2022
- 1 Minuut om te lezen
- Bijdragers
- Afdrukken
- DonkerLicht
- Pdf
How to make all links open in new tab?
- Bijgewerkt op 07 Nov 2022
- 1 Minuut om te lezen
- Bijdragers
- Afdrukken
- DonkerLicht
- Pdf
The content is currently unavailable in Dutch. You are viewing the default English version.
Article Summary
Share feedback
Thanks for sharing your feedback!
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
- Go to Settings → Knowledge base site → Custom CSS & JavaScript → Custom JavaScript
- Paste the below snippet
jQuery(".content_block_text a").attr("target", "_blank");
- Click Save
The hyperlinks in your article will open in a new tab now.
Was dit artikel nuttig?