Viewing 1 post (of 1 total)
  • Author
    Posts
  • nick mortensen Friend
    #196197

    I had a rough time trying to get the tooltips that are inherent to bootstrap operational on my site, but had a breakthrough and thought I’d share in case you also run into this issue.

    If you edit a post with no editor – HTML only and want to call those fun little tooltips from bootstrap, you can add to your element (in this example a link – or “a” element) a unique class name (in this example “wanttooltip”) and add an attribute: “data-toggle=”tooltip” to the tag (again, in my case an “a” tag) along with what you’d like your tooltip to say in a “title” attribute on the same element.

    Example

    <a class=”wanttooltip” data-toggle=”tooltip” title=”I want my tooltip to say” href=”#”>Mouse Over Me for a Tooltip</a>

    At that point, you’ve got to head to the bottom of your post and call for the tooltip, except where you’d normally use the “$” as in:
    <script>
    $(‘a.wanttooltip’).tooltip()
    </script>
    You substitute “jQuery” for the “$” as in:
    <script>
    jQuery(‘a.wanttooltip’).tooltip()
    </script>

    I pulled that knowledge off of the Joomla Documentation. It was a legitimate bear getting to that point – even after watching the “Up and Running With Bootstrap 3” tutorial from Lynda.com.

    Use it as you see fit, my friends.

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  nick mortensen 10 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum