Open External Links in a New Window - Ghost

Ghost, by default opens every link in the same window, even external. Like links from your blog posts pointing to some other websites are also opened in the same window. This takes your users away as they navigate away to a different website and might never come back. So, I found a workaround for this and here is the solution.


A little code snippet of JQuery can tune this settings without editing your theme files. Below is the code snippet:

I forked the original code snippet and added some spices to make it better.

  • Add this code snippet in the Blog Footer section in the Code Injection section from your Ghost Admin Panel and Save it. You are good to go!

Ghost Code Injection Blog Footer

This is safe for use with any #label you might be using or by your theme.

That’s all. All your external links will open in a new window.

Kirtan Thakkar

Life is all about learning