• Resolved nedkeller

    (@nedkeller)


    I’m trying to set an anchor at a particular row of my table, so that a link from an external page will go to that row, and not to the start of the table.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    For this, you could e.g. add something like

    <span id="link-row-5"><span>

    into one of the cells of the rows to which you would like to add a link.

    Then, you can use a URL like

    https://example.com/page-with-table/#link-row-5

    to directly scroll to row 5.

    However, note that this will not work for rows that are not on the first page of a table that uses the “Pagination” feature!

    Best wishes,
    Tobias

    Thread Starter nedkeller

    (@nedkeller)

    Thanks, that works. I did close the tag with </span> instead of <span>.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    Ah, my bad, that was a typo, of course!

    Good to hear that this helped! ??

    Best wishes,
    Tobias

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

    Thread Starter nedkeller

    (@nedkeller)

    I gave it 5 stars.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks a lot, I really appreciate it ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.