Bootstrap Static Popovers
# January 12, 2013 at 8:32 pm
All I see are paragraphs and links.
a) included the necessary Bootstrap JS/CSS
b) updated your markup with the code shown on the Bootstrap example page
All I see is this: http://cl.ly/image/2w0e0e1X1K0V
So I don’t know where your popover is supposed to occur.# January 12, 2013 at 8:42 pm
That’s right…I don’t know why the popover isn’t displaying. I have used the code that I pasted above. I did include the bootstrap.css file…I don’t think I need any other css bootstrap files, as I didn’t need one for the accordion function.
Can you view my source code on the refer.php page? You will see the popover code there…it should be showing up right under the header on the left-hand side of the page.# January 12, 2013 at 8:51 pm
No…maybe I am misunderstanding how this works….I *thought* from the example of static popovers on the Bootstrap page that they were just supposed to display with no clicking or anything. But nothing is showing up…I have been going round on this for a couple of days now.# January 12, 2013 at 8:58 pm
Ooohhhh. They are meant to be initialized by something with JS.
Yours isn’t showing because it’s set to `display: none;`. Having said that, you *shouldn’t* actually be writing any markup as it’s all done with the data attributes.
So what you *could* do, using the ‘Testimonials’ title as our reference, is this:
$(‘.your-toggle’).popover(‘show’);# January 12, 2013 at 9:08 pm
I see…it’s showing up now (I thought the ‘show’ option was for clicking on a button to display the popover.
I am now trying to figure out how to bring the title into the popover.
I am noticing that when I add the popover for the second reference it replaces the first….I think I’m going to give up on this…thanks for trying to help me out though!
You must be logged in to reply to this topic.