WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Suggestion – add tooltip feature

[Resolved] Suggestion – add tooltip feature

Viewing 7 replies - 1 through 7 (of 7 total)
  • I was a bit premature with that last post.

    I used the Responsive Mobile-Friendly Tooltip plugin’s [tooltip] shortcode in a pricing table that had not yet gone live on my site. I previewed the pricing table with the [tooltip] shortcode included, and it looks exactly how I would expect it to with the selected text having the relevant tooltip underline, etc.
    For example:

    Some text
    Some more text with a tooltip
    Even more text

    However when I set the pricing table on an actual live page, the tooltip shortcode does not function properly. All I get is the shortcode’s text included in the pricing table.
    For example:

    Some text
    [tooltip tip="Tooltip text describing what this is all about."]Some more text with a tooltip[/tooltip]
    Even more text

    I haven’t been able to figure out why it shows up fine in the preview mode, but not while it’s live on an actual page??

    The quick fix that I came up with to get the shortcode to work inside the pricing table was to edit wp-content/plugins/easy-pricing-tables/includes/shortcodes.php. Find line 27:

    return dh_ptp_generate_pricing_table($id);

    and replace it with:

    return do_shortcode(dh_ptp_generate_pricing_table($id));

    Although I haven’t tested it, this should also allow any other shortcode to work inside a pricing table.

    Plugin Author davidhme

    @davidhme

    Hi Oizuled,

    Thanks so much for your suggestion and bug report.

    Tooltips is something I’ve left out on purpose in order to keep the UI as simple as possible, but I agree that it would be a nice feature to have.

    I’m not sure if I’ll add in this feature anytime soon, but I’ve noted down your vote for this feature.
    I’ll also make sure to fix the current conflict between Easy Pricing Tables and the tooltip plugin you’ve mentioned asap – I’ll keep you updated.

    In the mean-time, please don’t update to the new version I’ve just released since it will override your fix.

    Thank you so much,
    David

    The more I think of it, the more I agree – as long as there are other plugins out there that can add the tooltip feature, there’s no need to clutter up your plugin’s UI.

    I do think that having the ability to use a shortcode in the pricing table can be extremely useful though. Not just for tooltips, but I’m sure there are plenty of other uses I can’t even think of right now that would be useful.

    Thanks for the update!

    Plugin Author davidhme

    @davidhme

    Hi Oizuled,
    I’ve fixed this with yesterday’s update. Let me know if it still doesn’t work for you.

    Thanks again for bringing this to my attention.

    Thank you,
    David

    It works perfectly now. Thanks for the update. I already rated this plugin with 5 stars – I’d give it another 5 star rating if I could!

    Thanks again for the update, and great work with the plugin.

    Plugin Author davidhme

    @davidhme

    Thanks for the kind words =)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Suggestion – add tooltip feature’ is closed to new replies.