I am trying to change the background color of Bootstrap UI popover by creating custom popover classes to override existing ones (e.g. popover1 , popover2 , etc. instead of popover ). I know this works for vanilla bootstraps popovers (here's a fiddle , but it doesn't seem to work for Popsters Bootstrap UI).
When I apply the same method to the PopUp Bootstrap UI, it just shows a tiny blank click. All I have done so far is change
<a class="btn btn-primary popover-container" id="popover" data-toggle="popover" data-placement="right" data-container="body" rel="log-popover">Log level</a>
to
<a class="btn btn-primary popover-container" popover-placement="right" popover-template="'partials/loglevel-template.html'" popover-trigger="click">Log level</a>
LogLevel-template.html
<div class="popover1"> <div class="arrow"></div> <div class="popover-content"> <p>some content</p> </div> </div>
When I delete the popover1 class, it works, so there is no functional problem with just displaying popover.
I like to use Bootstrap UI popovers more because you donβt need to use any of this hard tempoolery coding in jQuery (in fact you donβt need to write any jQuery at all). I just can't figure out how to change the background color of Bootstrap UI popovers. Before I headed down the rabbit hole, I wanted to know if anyone else had achieved this, or if there is an easy fix (maybe Popover for Bootstrap UI uses a different set of classes than vanilla popovers). If this is a matter of overriding some CSS classes, that would be a dream.
source share