[Resolved] Notify users that link will open in a new window

Home Forums Support [Resolved] Notify users that link will open in a new window

Home Forums Support Notify users that link will open in a new window

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #494724
    CRISTO

    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.

    #494906
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You could try something like this:

    .entry-content a[target="_blank"]:after {
        content: " (opens in a new window)";
    }
    #495315
    CRISTO

    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.

    #495377
    CRISTO

    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.

    #495460
    Tom
    Lead Developer
    Lead Developer

    Sounds good! No problem 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.