Theme overwrites and breaks .popover method
-
I’m using your Pinnacle theme (including the plugins Kadence Toolkit and Kadence Blocks – don’t know if this affects the issue).
For a advanced feature I was looking to add the bootstrap popup functionality in a single page.
The code looks like this:
$(function () { $('.example-popover').popover({ container: 'body' }) })
See https://getbootstrap.com/docs/4.1/components/popovers/
Unfortunately the method .popover is calling a script of your theme instead of bootstrap/popper.js:
/wp-content/themes/pinnacle/assets/js/min/kt_plugins.min.js?ver=176var i = t.fn.popover; t.fn.popover = function(i) { return this.each(function() { var n = t(this) , o = n.data("bs.popover") , s = "object" == typeof i && i; o || n.data("bs.popover", o = new e(this,s)), "string" == typeof i && o[i]() }) }
This results in that the popup isn’t shown. Why do you overwrite the function?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Theme overwrites and breaks .popover method’ is closed to new replies.