WordPress.org

Ready to get started?Download WordPress

Forums

Dynamically append text to title attribute of links with target=_blank (3 posts)

  1. haikudegrace
    Member
    Posted 1 year ago #

    Hi--

    Hopefully someone can kickstart my brain and get me rolling in the right direction.

    I need a function to append the words "opens in new tab" to the title attribute of links on my site that have target="_blank".

    The idea is to make links more accessible to those who use screen readers.

    I'm on 3.4.1 (server's php version isn't updated to 5 yet), using a twentyten child theme.

    Thanks in advance!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Why are you spawning new windows on links in the first place?

  3. haikudegrace
    Member
    Posted 1 year ago #

    Thanks for your question, esmi. This just concerns external links within the site content, links that take the visitor to another domain. Links to pages and posts on my domain wouldn't spawn new windows.

Topic Closed

This topic has been closed to new replies.

About this Topic