• Resolved mistermarc

    (@mistermarc)


    Hi Tobias!

    I love your plugin! Many thanks for all your work!!

    I just have a quick question:

    How can I add a “tooltip” to my tables.

    I have a “feature comparison table” where I would like descriptive text to show-up whenever a user hovers over certain cells.

    I could not find this question answered in any of the discussions so I hope you don’t mind me asking.

    Many thanks.

    Marc

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

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

    (@tobiasbg)

    Hi Marc,

    thanks for your question.

    Small tooltips (like those usually small yellow ones that you can see when moving the mouse over an image on many websites), can be achieved by wrapping the element that shall have that tooltip with a span element that has a “title”, like this:

    <span title="This is the text of the tooltip">This is the regular text
    that gets a tooltip.</span>

    If you want tooltips that are styled differently, you’ll need to use another plugin for this, that e.g. adds tooltips via JavaScript. Unfortunately, I don’t have any experience with such plugins and can’t recommend one 🙁

    Regards,
    Tobias

    If anyone know’s how to successfully get a nice looking (i.e. JS or AJAX type) tooltip to work with Tablepress, please let me know?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    as mentioned above, you’ll basically just need to find a plugin that adds Tooltips in general. Adding those to a TablePress table is then no real problem.

    Regards,
    Tobias

    I actually tried a few different tooltip plugins already, which work great in normal content but not inside the tables

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    can you explain how or what is not working in tables? Can you post a link to a table where the tooltips are not working, and describe how you added them to the table?

    Regards,
    Tobias

    Well, the tooltip plugins that I tried out all have some shortcode that you insert into page or post content, but I just found one which works fine. “Easy Tooltip”.

    you install it, and then add the tooltip as such:

    [tooltip title=”Info” content=”This is the amount of data transfer your account has, for website and email traffic per month. Extra usage will be billed for at the end of the month. ” type=”info” ]Bandwidth[/tooltip]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    awesome! That’s great information! Thanks for sharing that!
    For everyone who is interested, the plugin is at http://wordpress.org/extend/plugins/easy-tooltip/

    Best wishes,
    Tobias

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