Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Simple Tooltips

Описание

Легко добавляет всплывающие подсказки на сайт. Подсказки будут появляться при наведении на элемент. На мобильных устройствах подсказки появляются, когда на элемент произведён «тап». Вы можете поменять цвета в меню «Настройки» > Simple Tooltips

Как использовать

To define a tooltip (new, easy way): Click the tooltip icon on your visual content editor to add the tooltip shortcode. Change the content attribute to whatever you want to be the content inside the tooltip bubble. Change the tooltip trigger to whatever content you want to be used to trigger the tooltip, when hovered. (see screenshots)

To define a tooltip (old way): Add class «tooltips» to the target html element. The title attribute will be used for tooltip content.

Благодарности

Спасибо Stefan Gabos, который разработал оригинальный jQuery плагин.

Скриншоты

  • Всплывающие подсказки в действии
  • Добавление всплывающих подсказок (новый, простой способ)
  • Добавление визуальных элементов внутрь подсказки как триггер.
  • Изменение отдельных подсказок
  • Редактирование строчного стиля для триггерного элемента
  • Чтобы добавить подсказку (старый html-способ), присвойте класс "tooltips" html-элементу, подсказку запишите в атрибут title.
  • Вы можете с лёгкостью поменять цвет подсказок в меню "Настройки" > "Simple Tooltips"
  • Пример всплывающих подсказок в меню WordPress

Установка

  1. Из WP admin > Плагины > Добавить новый
  2. Введите «Simple Tooltips» в поле поиска и нажмите «Enter»
  3. Нажмите «Установить сейчас»
  4. Нажмите на ссылку «Активировать плагин»

Часто задаваемые вопросы

Как я могу добавить всплывающую подсказку (новым, простым способом)?

Click the tooltip icon on your visual content editor to add the tooltip shortcode. Change the content attribute to whatever you want to be the content inside the tooltip bubble. Change the tooltip trigger to whatever content you want to be used to trigger the tooltip, when hovered. (see screenshots).

How do I add visual elements inside the tooltip and as tooltip trigger?

You should be able to edit the tooltip content and/or trigger to allow for html elements via the visual editor (such as links, images, colored text, bold, etc). One note of caution: if you are trying to use an image inside the bubble content, it’s a good idea to set the image width and height directly by editing the inline style attribute (which you can access via the image html) for the img tag. This helps ensure that the bubble will register the image size correctly. Also, make sure to adjust the max bubble width to allow for the image. (see screenshots)

How do I customize individual tooltips?

The tooltip style settings you set on the Simple Tooltips setting page will apply to all your tooltips by default. However, you can now override the default tooltip style by editing the shortcode for that toolltip.

Here is the list of customizable parameters:

  • bubblewidth (integer, in pixels) — Sets the max width for tooltip bubble. If you are trying to fit an image inside the bubble, and the image is too big for the tooltip bubble area, try adjusting the max bubble width to make sure it is big enough to the fit the desired image.
  • bubbleopacity (integer, between 0 and 1) — Sets the bubble opacity. 0 is invisible and 1 is totally solid.
  • bubblebgcolor (color name or hex value) — sets the bubble background color. Could be a color name, like green, or a hex value, like #666666.
  • bubbleposition (left | center | right) — the position of the tooltip, relative to the trigger element
  • bubblecolor (color name or hex value) — sets the bubble text color. Could be a color name, like green, or a hex value, like #666666. or a hex value.

And here’s an example of how you could apply this:

[simple_tooltip bubblewidth='100' bubbleopacity='1' bubblebgcolor='#666666' bubbleposition='left' bubblecolor='blue' content='this content appears in the tooltip bubble']This triggers the tooltip[/simple_tooltip]

(see screenshots)

How do I edit the inline style for a trigger element?

You can add inline style attributes to the trigger element by adding the style attribute to the [simple_tooltips] shortcode. For example, add style=’background:blue’ to the simple_tooltip shortcode, to make the background color for the trigger element blue. Like this…

[simple_tooltip style='background:blue;color:white;' content='This is the content for the tooltip bubble. The tooltip bubble has the default style' ]This triggers the tooltip. The trigger background is blue and text color is white.[/simple_tooltip]

(see screenshots)

How do I add a tooltip (older, html way)?

Добавьте класс «tooltips» к нужному html-элементу. Текст из атрибута title будет выведен в качестве подсказки (см. скриншот).

Как я могу изменить цвет подсказок?

Настройки > Simple Tooltips.

Отзывы

01.08.2021
I was seeking a tooltip plugin for images and this one makes it simple! Others? Not so much! 5 Stars all the way! Thanks!
15.08.2020
This plugin was not updated for a really long time, but surprisingly it is still working and doing all I would expect from it.
08.12.2019
Simple Tooltips is a flexible and extensible WordPress plugin for modern tooltips. I'm using it with Wordpress 5.3 A Big Thank you to developer!
09.07.2019
You wouldn't believe how complex creating your own tooltips can be. Simple Tooltips is powerful and easy to use. It works on desktop and mobile. Thanks so much for making such a solid tooltip solution for WordPress.
Посмотреть все 69 отзывов

Участники и разработчики

«Simple Tooltips» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Simple Tooltips» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

2.1.4

  • Security update

2.1.3

  • Resolved error noticed in debug mode

2.1.2

  • Adds compatibility with languages that use RTL (right to left) text

2.1.1

  • Adds the option to disable tooltips on mobile

2.0

  • Click tooltip button on visual editor to easily add tooltips
  • Add visual elements like images, links, bold text, etc, inside tooltips and as tooltip trigger
  • Customize individual tooltips
  • Edit inline style for trigger element

1.1

  • Set max width for tooltip
  • Set tooltip opacity
  • Set tooltip position
  • Apply tooltips to WordPress menus

1.0

  • Первая версия