Archived topic
Notify users that link will open in a new window
4 replies · Started by CRISTO on February 12, 2018
All my internal links open in the same window, and all my external links in a new window. I came across a site today that gave a warning when someone highlighted a link that it would open in a new window. Thought it was kind of neat thing to have. Do not remember the site unfortunately.
I came across this article, but not sure if this would be the way to go. I tried the css shown using simple css but it did nothing.
I was hoping to find a global setting...too many links to do individually.
Not really essential to my site, but thought it might be useful.
Hi there,
You could try something like this:
.entry-content a[target="_blank"]:after {
content: " (opens in a new window)";
}
Thanks, Tom. Doesn't seem to work but I will keep searching. Maybe I can find that site I was on that had that feature and see what the code was.
Actually, there is a WP plug-in called "exit notifier". Just need to play around with it a bit, but think it will do the job.
Thanks, as usual, for being so ready to help.
Sounds good! No problem :)