Title: hyperlinks do not work
Last modified: March 27, 2020

---

# hyperlinks do not work

 *  Resolved [janetfong](https://wordpress.org/support/users/janetfong/)
 * (@janetfong)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/)
 * hello,
 * I am trying to use this plugin for nicer-looking tables on my website, but the
   hyperlinks do not seem to work (all cells apart from the first column and head
   row should contain a hyperlink) Any help would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhyperlinks-do-not-work-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12590919)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * The reason for this is that the link text for all your links is not “inside” 
   the link code, but in front of it.
    For example, you have this in the cells:
 *     ```
       Physiology<a href="https://hkca.edu.hk/ANS/exams/past_papers/intermediate_papers/I2019(1)_physio.pdf" rel="noopener" target="_blank"></a>
       ```
   
 * To make the link clickable, the link text needs be before the `</a>`. Thus, please
   change this to
 *     ```
       <a href="https://hkca.edu.hk/ANS/exams/past_papers/intermediate_papers/I2019(1)_physio.pdf" rel="noopener" target="_blank">Physiology</a>
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [janetfong](https://wordpress.org/support/users/janetfong/)
 * (@janetfong)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12591095)
 * Thank you so much for your prompt reply and solution!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12591312)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!
 *  Thread Starter [janetfong](https://wordpress.org/support/users/janetfong/)
 * (@janetfong)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12609885)
 * Hello Tobias,
 * May I seek your help again?
 * I have this table here [https://www.hkca.edu.hk/~hkcaweb-01/wordpress/test](https://www.hkca.edu.hk/~hkcaweb-01/wordpress/test).
   I have had the “use datatables” checked, but such functions were not shown.
 * Would be grateful if you could take a look at it.
 * Many thanks!
    Janet
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12610340)
 * Hi Janet,
 * the reason for this is that you are using combined/merged cells in the header
   row. Unfortunately, the DataTables JS library does not support this 🙁 It requires
   that tables don’t have such combined cells.
    So, if you want to use the JavaScript
   features, you’ll have to remove all `#colspan#` and `#rowspan#` from the table.
   Sorry for not having better news here.
 * Regards,
    Tobias
 *  Thread Starter [janetfong](https://wordpress.org/support/users/janetfong/)
 * (@janetfong)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12610359)
 * Thank you again Tobias, very helpful as usual.
 * One more question- would it be possible to limit the sorting function to certain
   headers only (eg. visitors can only sort table with first header and not the 
   others)?
 * Many thanks,
    Janet
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12610468)
 * Hi Janet,
 * yes, that’s possible!
 * To only allow sorting of the first column of this table, please add this to the“
   Custom Commands” text field on the “Edit” screen of the table:
 *     ```
       "columnDefs": [ { "orderable": false, "targets": [ 1, 2, 3, 4 ] } ]
       ```
   
 * (but you would still have to remove the `#colspan#`).
 * Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘hyperlinks do not work’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [hyperlinks](https://wordpress.org/support/topic-tag/hyperlinks/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-do-not-work-2/#post-12610468)
 * Status: resolved