WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] php code to make link disappear after clicking on it?

[Resolved] php code to make link disappear after clicking on it?

  • Does anyone know of some php code to make a link disappear once its been clicked on? I have a link to launch an mp3 player on the site but everytime you click it a new one launches so it would be great for that link to disappear after its clicked. the link is included in my header.php file.

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Assuming the link is under a class named ‘mp3player’, you can add this to your style.css:

    .mp3player a:visited { display: none; }

    what a splendid idea! cant believe i didnt think of that!

    Only downside I can think of is that it won’t reset until browser history is cleared.

    If this solves your problem, please mark this topic ‘Resolved’.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] php code to make link disappear after clicking on it?’ is closed to new replies.