How do I add a link to an element of the TablePress table? I have a table that is 4×4 in size and I want to add links to all the cells in column 2 of the table. Each cell in the column will have a different link.
Adding links is possible by either typing the HTML code for a link manually, or by simply using the “Insert Link” button below the table edit fields. You will then be asked for the URL and link text, and the link HTML will be created for you.
I’m trying to figure out how I can make an entire cell hyperlinked – i.e. if you click anywhere in the cell, it will link out. I think you do this in HTML by wrapping the <td> tags in an anchor href tag. I can’t see how to do it in TablePress though.
Sorry for the late answer. As I was on vacation, I didn’t have a chance to reply earlier.
That’s not possible that easily, as only links are clickable by default, while table cells are not. That’s just how browsers work.
Thanks for the great plugin.
I would like to ask if it is possible to import data from an xlsx file that cells contain text hyperlinked to a web site. I managed to import data from the xlsx file but it seems that the hyperlinks are not transferred.
thanks for your question, and sorry for the trouble.
No, right now, that’s not possible with the XLSX import, sorry. The Excel import is very basic and it can not detect links yet.
The best way to do this should therefore be to use a macro in Excel that rewrites the links to HTML as briefly described here: http://wordpress.org/support/topic/hyperlinks-in-cells
With that, you could then export the table to CSV and import that, including the links (as HTML code).
Unfortunately, I have never used this before and I’m not an Excel expert, so I won’t be able to help with that code.
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘[Resolved] Add link in TablePress tables’ is closed to new replies.