If your Bootstrap tooltip is not working on your Webflow site, it's likely due to missing dependencies, initialization issues, or conflicting scripts.
Example (for Bootstrap 5):
<button type="button" data-bs-toggle="tooltip" title="Tooltip text">Hover me</button>
Webflow doesn’t auto-initialize Bootstrap tooltips, so you must do this manually.
In Page Settings > Custom Code > Footer, add:
For Bootstrap 5:
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.forEach(function (tooltipTriggerEl) { new bootstrap.Tooltip(tooltipTriggerEl); });
For Bootstrap 4:
$(function () { $('[data-toggle="tooltip"]').tooltip(); });
Ensure the script runs after Bootstrap JS is loaded, ideally in the Footer section.
To fix Bootstrap tooltips not working in Webflow: ensure Bootstrap, Popper.js, and (if needed) jQuery are included, use the correct tooltip markup, and initialize tooltips manually in the footer using the appropriate JavaScript. Also, avoid conflicts with Webflow’s built-in tooltip features.