WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Add link in TablePress tables (11 posts)

  1. dhruvkb
    Member
    Posted 1 year ago #

    How do I add a link to an element of the TablePress table? I have a table that is 4x4 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.
    Please help.

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question.

    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.

    Regards,
    Tobias

  3. MonkeyChap
    Member
    Posted 10 months ago #

    Hi

    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.

    Thanks

    Ian

  4. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Ian,

    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.
    Now, you could try to use some JavaScript code, that will listen to clicks on a cell and then trigger the click on the link in the cell. I suggest that you use the jQuery JavaScript library here, for which you can find a nice tutorial at http://jqfundamentals.com/

    Regards,
    Tobias

  5. MonkeyChap
    Member
    Posted 9 months ago #

    Thanks! I managed a work-around by filling the cell with text (not ideal, but it kinda works).

    If I get some free time, I'll take a look at the JS approach.

  6. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    that's great news! :-) Nice to hear that you found a workaround in the meantime!

    Best wishes,
    Tobias

  7. Souarmh
    Member
    Posted 4 months ago #

    Hello,

    I would use the "insert link" button but i have this message: "Please click into the cell you want to have the link to..."... i did

    1. I fill-in my cell with the texte I want
    2. I keep my mouse in the same cell and click "insert a link"
    3. I receive this message

    What can I do?

    thanks

  8. Souarmh
    Member
    Posted 4 months ago #

    I just found...

    It's:

    1. I fill-in my cell
    2. I go out from the table content
    3. I click on "insert a link"
    4. I choose the cell I want the link into.

    Thank you

  9. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    yes, you just have to click into the desired cell after clicking the "Insert Link" button :-)

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

  10. nikosk123
    Member
    Posted 3 months ago #

    Hi,
    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.

  11. TobiasBg
    Member
    Plugin Author

    Posted 3 months ago #

    Hi,

    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.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic