Linux 软件免费装
Banner图

Simple Tooltips

开发者 clevelandwebdeveloper
更新时间 2023年1月14日 09:37
捐献地址: 去捐款
PHP版本: 2.9 及以上
WordPress版本: 5.0.3
版权: GPLv2
版权网址: 版权信息

标签

tooltips tips

下载

1.1 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4

详情介绍:

Easily add tooltips to your wordpress site. Tooltips will show when target element is hovered over. On mobile devices tooltips show when target element is tapped. You can easily pick your tooltip color settings in Settings > Simple Tooltips. How to Use 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. 鸣谢 Thanks to Stefan Gabos who made the original jQuery plugin.

安装:

  1. From WP admin > Plugins > Add New
  2. Search "Simple Tooltips" under search and hit Enter
  3. Click "Install Now"
  4. Click the Activate Plugin link

屏幕截图:

  • Adding a tooltip (the new, easy way)
  • Adding visual elements inside the tooltip and as tooltip trigger
  • Customizing individual tooltips
  • Editing the inline style for a trigger element
  • To set a tooltip (older, html way): add class "tooltips" to html element, use title attribute for tooltip message.
  • You can easily change tooltip color settings in Settings > Simple Tooltips
  • Simple tooltip in action on a WordPress menu item

升级注意事项:

2.1.3 New: Resolves error notices in debug mode.

常见问题:

How do I add 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).

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)?

Add class "tooltips" to the target html element. The title attribute will be used for tooltip content (see screenshot).

How do I change tooltip color settings?

Settings > Simple Tooltips.

更新日志:

2.1.4 2.1.3 2.1.2 2.1.1 2.0 1.1 1.0