• Resolved Hockeyguy1925

    (@hockeyguy1925)


    Hi again Tobias,
    I am currently trying to add this tool tip shortcode to numerous cells in a table using TablePress. Is this possible? If so please let me know how.

    I am trying to use it in a way that when a user hovers over a team record -say most goals in a season for example-that has a few players that have tied the record. I want to show the first player who recorded the most goals in a season and then when hovered it shows the players who have tied the record. Make sense? I have emailed link to test site so you can see how I have incorporated Table press into site.

    Here is link to shortcode for JQuery Tooltip.
    http://mysitemyway.com/docs/index.php/JQuery_Tooltips#Tooltips

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

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

    (@tobiasbg)

    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

    Thread Starter Hockeyguy1925

    (@hockeyguy1925)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Thread Starter Hockeyguy1925

    (@hockeyguy1925)

    As always, thank you. That did it.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    awesome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    Thread Starter Hockeyguy1925

    (@hockeyguy1925)

    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?

    Plugin Author TobiasBg

    (@tobiasbg)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JQuery Tooltip’ is closed to new replies.