Jump to content

Allowing IPB users to choose tooltip display position


Recommended Posts

I think you should allow users to choose the position tooltips are being displayed. Of course, but if user hasn't chosen a position and set the position to 'auto'.

public/js/ips.js (line 1322)

position: 'auto',

Changes to:

position: ( $( element ).hasAttribute("data-tooltip-position") ) ? $( element ).readAttribute("data-tooltip-position") : 'auto',

That will allow users to define a display position by 'data-tooltip-position' attribute. Like:

<img src="icon.png" data-tooltip="Testing Tooltip" data-tooltip-position="bottom" />

Thanks :)

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...