Support » Plugin: Responsive Mobile-Friendly Tooltip » is it a way to pick the content into a pre-registered list for responsive tips

  • Hi,

    The problem is the case where you plan to use tooltips to display a definition (or a comment) about a content which can occurs with same content in several places of your site.

    In such case you wish to have to create and maintain the content once unique.

    Currently I imagine two solutions, because I have not seen how to do it in current version :
    1- use of a textwidget and is shortcode into html content of the tip :the problem is that if there are many texts (a glossary) textwidget is not designed for this and I am not sure that the html display can hold the shortcodes.
    2- a tooltip database with “named tooltip” which should be displayed if you define the a parameter “name” which will replace the content.

    What is your proposal ?

    Best regards

    Trebly

    note : I have asked the same to “simple tips” but I have to write this here because it seems impossible to ask the same question to author of several plugins.

Viewing 1 replies (of 1 total)
  • Plugin Author ItayXD

    (@itayxd)

    The best way I can think of is a filter on the_content which loops through a dictionary and adds the HTML tags. the dictionary itself will probably be saved in the DB so you probably want an admin interface for that too. That is if you want the whole process to be automatic.
    You could probably also enter all the tips to the DB and then just have it autocomplete whenever you start typing, but that would require you to add the tooltip to each instance of the word.
    Hope it helps,
    Itay

    • This reply was modified 1 year, 5 months ago by  ItayXD. Reason: typo
Viewing 1 replies (of 1 total)
  • The topic ‘is it a way to pick the content into a pre-registered list for responsive tips’ is closed to new replies.