Support » Developing with WordPress » Add custom html to Media title row

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s not really possible in PHP to alter the contents of most existing columns, including media title. It is possible to add action links that appear on rollover. The added links are arbitrary HTML, so it doesn’t have to be an actual link, but the added HTML will only appear on roll over.

    What is possible is to add your own custom column, or even to remove the title column and replace with your own version, which could be identical except for your added HTML. Your internal column key name just needs to be different.

    It’s also possible to add arbitrary HTML anywhere on the page after it has been loaded by using jQuery and JavaScript. Using this approach results in a small delay after page load before your content appears, which many find objectionable.

    If you find adding or swapping columns is your best option, this article will serve as a useful reference. It includes a section on row action links too.

    Thanks, @bcworkz for your response. We choose a solution as you mentioned by adding a custom column.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add custom html to Media title row’ is closed to new replies.