[SOLVED] How to use tooltip from bootstrap

  • maxwbr
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago - 10 years 2 months ago #38808 by maxwbr
How to use tooltip from bootstrap in Spark?

I did it...

<a title="" href="#" target="_blank" data-toggle="tooltip" data-placement="bottom" data-original-title="Tooltip on bottom">Test</a>

But, not work.
Last edit: 10 years 2 months ago by maxwbr.

Please Log in to join the conversation.

More
10 years 2 months ago #38825 by ivan.milic
You have joomla 3 right?

Can you send your link so I could see tooltip initialization script is present in page sources.

Please Log in to join the conversation.

  • maxwbr
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago #38861 by maxwbr

Please Log in to join the conversation.

More
10 years 2 months ago #38867 by ivan.milic
Add this in index.php of template just above </head>

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('[rel="tooltip"]').tooltip();
});
</script>


you need to set rel="tooltip" attribute on each element you want tooltip for
The following user(s) said Thank You: maxwbr

Please Log in to join the conversation.

  • maxwbr
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago #38870 by maxwbr
It's fine works :laugh:

Please Log in to join the conversation.

Time to create page: 0.320 seconds
Powered by Kunena Forum