Hi,
thanks for the question.
I’m not really sure what the problem is here. If that’s a regular WordPress Shortcode, you can easily add it to the table cells. Depending on how the Shortcode loads its JavaScript code, it might be necessary to add the cache_table_output=false
parameter to the [table]
Shortcode.
Then, you would just add the content that shall be shown in the tooltip to that tooltip Shortcode.
Regards,
Tobias
Hi Tobias,
Thank you for your response. I have tried just a quick copy and paste of shortcode used in the example code in above link. It seems to work fine in a blank table I used to test it, but in most of my tables I have used
“aoColumnDefs”: [ { “bVisible”: false, “aTargets”: [6] }]
(6 being just a random column number for this)
I also added cache_table_output parameter as you mention and it is not working. Or at least I cant get to work.
I have sent another email with a couple of links.
Thanks
Hi,
no, the JS does not seem to be the problem.
Instead, the jQuery tooltips library is apparently not adding its JS file to the page, if there’s no tooltip outside of a table. (That’s because it probably has some check to only embed the file if there is a tooltip. It can however not recognize them inside the tables.)
So, my suggestion: Just add an empty tooltip somewhere outside the table.
Regards,
Tobias
As always, thank you. That did it.
Hi,
awesome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
Sorry Tobias,
Most of the examples from first link dont work. the very last wone does but the rest to not. I have cleared cache from browser and nothing.
Any other ideas?
Hi,
do all of the tables on that page have cache_table_output=false
? Other than that, I have no real idea what you mean. There’s just one tooltip on the season-records page and that works (but the text is empty).
Regards,
Tobias