{"id":9336,"date":"2015-12-22T16:11:50","date_gmt":"2015-12-22T14:11:50","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=9336"},"modified":"2018-01-08T13:23:35","modified_gmt":"2018-01-08T11:23:35","slug":"bootstrap-popover-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/","title":{"rendered":"Bootstrap Popover Example"},"content":{"rendered":"<p>In this example, we&#8217;ll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user clicks on an element. The difference is that the popover can contain much more content. Plugin dependency: Popovers require the tooltip plugin (tooltip.js) to be included in your version of Bootstrap.<\/p>\n<p>They enable you to add small overlays of content, like those on the iPad, to any element for housing secondary information. Here, we&#8217;re having a look at creating popovers and then looking at what methods or options can be added to this plugin.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;57DHuNTHJ2qczaGz&#8217;]<\/p>\n<h2>1. Project Setup<\/h2>\n<p>The following requirements need to be met in order to continue adding popovers with Bootstrap.<\/p>\n<h3>1.1 Project Folder Setup<\/h3>\n<p>Create a new HTML file, which will be your main one, and make sure you have the following folder structure after downloading Boostrap.<\/p>\n<figure id=\"attachment_9343\" aria-describedby=\"caption-attachment-9343\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-1.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-1.jpg\" alt=\"Project Folder Setup\" width=\"820\" height=\"441\" class=\"size-full wp-image-9343\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-1.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-1-300x160.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-9343\" class=\"wp-caption-text\">Project Folder Setup<\/figcaption><\/figure>\n<h3>1.2 Main HTML Setup<\/h3>\n<p>Bootstrap already provides a base HTML, which contains links and references to all its&#8217; libraries, including a CDN version of jQuery. Your main HTML file should have the following basic syntax inside:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=\"utf-8\"&gt;\r\n    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"&gt;\r\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\r\n    &lt;title&gt;Bootstrap Popover Example&lt;\/title&gt;\r\n\r\n    &lt;!-- Bootstrap --&gt;\r\n    &lt;link href=\"css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n\r\n    &lt;!-- jQuery (necessary for Bootstrap's JavaScript plugins) --&gt;\r\n    &lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.3\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;!-- Include all compiled plugins (below), or include individual files as needed --&gt;\r\n    &lt;script src=\"js\/bootstrap.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h2>2. Cases and Examples<\/h2>\n<h3>2.1 A Default Popover<\/h3>\n<p>The default popover will be shown on the right of a button (which is the element we&#8217;re adding a popover) and will need initialization like in the following code:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;button type=\"button\" class=\"btn btn-primary\" data-toggle=\"popover\" title=\"Popover title\" data-content=\"And here's some amazing content. It's very engaging. Right?\"&gt;Click to toggle popover&lt;\/button&gt;\r\n<\/pre>\n<pre class=\"brush:js\">\r\n&lt;script type=\"text\/javascript\"&gt;\r\n   $(function () {\r\n     $('[data-toggle=\"popover\"]').popover()\r\n   })\r\n&lt;\/script&gt;\r\n<\/pre>\n<p>In the browser, the popover would show up this way:<br \/>\n<figure id=\"attachment_9346\" aria-describedby=\"caption-attachment-9346\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-2.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-2.gif\" alt=\"Next Click Dismiss Popover Example\" width=\"820\" height=\"148\" class=\"size-full wp-image-9346\" \/><\/a><figcaption id=\"caption-attachment-9346\" class=\"wp-caption-text\">Next Click Dismiss Popover Example<\/figcaption><\/figure><\/p>\n<h3>2.2 Four Directions on Popovers<\/h3>\n<p>Just like tooltips, even popovers can be placed on top, bottom and right, left. This is achieved using the <code>data-placement<\/code> attribute in the HTML element.<\/p>\n<pre class=\"brush:xml\">\r\n&lt;button type=\"button\" class=\"btn btn-default\" data-container=\"body\" data-toggle=\"popover\" data-placement=\"left\" data-content=\"Vivamus sagittis lacus vel augue laoreet rutrum faucibus.\"&gt;\r\n  Popover on left\r\n&lt;\/button&gt;\r\n\r\n&lt;button type=\"button\" class=\"btn btn-default\" data-container=\"body\" data-toggle=\"popover\" data-placement=\"top\" data-content=\"Vivamus sagittis lacus vel augue laoreet rutrum faucibus.\"&gt;\r\n  Popover on top\r\n&lt;\/button&gt;\r\n\r\n&lt;button type=\"button\" class=\"btn btn-default\" data-container=\"body\" data-toggle=\"popover\" data-placement=\"bottom\" data-content=\"Vivamus sagittis lacus vel augue laoreet rutrum faucibus.\"&gt;\r\n  Popover on bottom\r\n&lt;\/button&gt;\r\n\r\n&lt;button type=\"button\" class=\"btn btn-default\" data-container=\"body\" data-toggle=\"popover\" data-placement=\"right\" data-content=\"Vivamus sagittis lacus vel augue laoreet rutrum faucibus.\"&gt;\r\n  Popover on right\r\n&lt;\/button&gt;\r\n<\/pre>\n<p>Similarly, the view would be:<br \/>\n<figure id=\"attachment_9349\" aria-describedby=\"caption-attachment-9349\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-3.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-3.gif\" alt=\"Four Directions Popover Example\" width=\"820\" height=\"516\" class=\"size-full wp-image-9349\" \/><\/a><figcaption id=\"caption-attachment-9349\" class=\"wp-caption-text\">Four Directions Popover Example<\/figcaption><\/figure><\/p>\n<h3>2.3 Dismissable Popover<\/h3>\n<p>Use the <code>focus<\/code> trigger to dismiss popovers on the next click that the user makes.<\/p>\n<pre class=\"brush:xml\">\r\n&lt;a tabindex=\"0\" class=\"btn btn-lg btn-danger\" role=\"button\" data-toggle=\"popover\" data-trigger=\"focus\" title=\"Dismissible popover\" data-content=\"And here's some amazing content. It's very engaging. Right?\"&gt;Dismissible popover&lt;\/a&gt;\r\n<\/pre>\n<p>On the next click, the popover is going to fade out:<br \/>\n<figure id=\"attachment_9351\" aria-describedby=\"caption-attachment-9351\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-4.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/popover-4.gif\" alt=\"Default Popover Example\" width=\"820\" height=\"172\" class=\"size-full wp-image-9351\" \/><\/a><figcaption id=\"caption-attachment-9351\" class=\"wp-caption-text\">Default Popover Example<\/figcaption><\/figure><\/p>\n<h2>3. Options<\/h2>\n<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-<\/code>, as in <code>data-animation=\"\"<\/code>.<\/p>\n<h3>3.1 <strong>animation<\/strong><\/h3>\n<p><strong>Type<\/strong>: Boolean<br \/>\n<strong>Default<\/strong>: True<br \/>\n<strong>Description<\/strong>: Apply a CSS fade transition to the popover.<\/p>\n<h3>3.2 <strong>container<\/strong><\/h3>\n<p><strong>Type<\/strong>: String<br \/>\n<strong>Default<\/strong>: False<br \/>\n<strong>Description<\/strong>: Appends the popover to a specific element. Example: <code>container: 'body'<\/code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element &#8211; which will prevent the popover from floating away from the triggering element during a window resize.<\/p>\n<h3>3.3 <strong>content<\/strong><\/h3>\n<p><strong>Type<\/strong>: String | Function<br \/>\n<strong>Default<\/strong>: &#8221;<br \/>\n<strong>Description<\/strong>: Default content value if <code>data-content<\/code> attribute isn&#8217;t present. If a function is given, it will be called with its this reference set to the element that the popover is attached to.<\/p>\n<h3>3.4 <strong>delay<\/strong><\/h3>\n<p><strong>Type<\/strong>: Number | Object<br \/>\n<strong>Default<\/strong>: 0<br \/>\n<strong>Description<\/strong>: Delay showing and hiding the popover (ms) &#8211; does not apply to manual trigger type. If a number is supplied, delay is applied to both hide\/show. Object structure is: <code>delay: { \"show\": 500, \"hide\": 100 }<\/code><\/p>\n<h3>3.5 <strong>html<\/strong><\/h3>\n<p><strong>Type<\/strong>: Boolean<br \/>\n<strong>Default<\/strong>: False<br \/>\n<strong>Description<\/strong>: Insert HTML into the popover. If false, jQuery&#8217;s text method will be used to insert content into the DOM. Use text if you&#8217;re worried about XSS attacks.<\/p>\n<h3>3.6 <strong>placement<\/strong><\/h3>\n<p><strong>Type<\/strong>: Boolean<br \/>\n<strong>Default<\/strong>: Right<br \/>\n<strong>Description<\/strong>: How to position the popover &#8211; top | bottom | left | right | auto.<br \/>\nWhen &#8220;auto&#8221; is specified, it will dynamically reorient the popover. For example, if placement is &#8220;auto left&#8221;, the popover will display to the left when possible, otherwise it will display right.<br \/>\nWhen a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The <code>this<\/code> context is set to the popover instance.<\/p>\n<h3>3.7 <strong>selector<\/strong><\/h3>\n<p><strong>Type<\/strong>: String<br \/>\n<strong>Default<\/strong>: False<br \/>\n<strong>Description<\/strong>: If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added.<\/p>\n<h3>3.8 <strong>title<\/strong><\/h3>\n<p><strong>Type<\/strong>: String | Function<br \/>\n<strong>Default<\/strong>: &#8221;<br \/>\n<strong>Description<\/strong>: Default title value if <code>title<\/code> attribute isn&#8217;t present. If a function is given, it will be called with its this reference set to the element that the popover is attached to.<\/p>\n<h3>3.9 <strong>trigger<\/strong><\/h3>\n<p><strong>Type<\/strong>: String<br \/>\n<strong>Default<\/strong>: &#8220;click&#8221;<br \/>\n<strong>Description<\/strong>: \tHow popover is triggered &#8211; click | hover | focus | manual. You may pass multiple triggers; separate them with a space. <code>manual<\/code> cannot be combined with any other trigger.<\/p>\n<h3>3.10 <strong>viewport<\/strong><\/h3>\n<p><strong>Type<\/strong>: String | Object | Function<br \/>\n<strong>Default<\/strong>: { selector: &#8216;body&#8217;, padding: 0 }<br \/>\n<strong>Description<\/strong>: Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'<\/code> or <code>{ \"selector\": \"#viewport\", \"padding\": 0 }<\/code><br \/>\nIf a function is given, it is called with the triggering element DOM node as its only argument. The this context is set to the popover instance.<\/p>\n<h2>4. Methods<\/h2>\n<p><code>$().popover(options)<\/code> &#8211; Initializes popovers for an element collection.<\/p>\n<h3>4.1 <strong>.popover(&#8216;show&#8217;)<\/strong><\/h3>\n<p>Reveals an element&#8217;s popover. <strong>Returns to the caller before the popover has actually been shown<\/strong> (i.e. before the <code>shown.bs.popover<\/code> event occurs). This is considered a &#8220;manual&#8221; triggering of the popover. Popovers whose both title and content are zero-length are never displayed.<\/p>\n<p><code>$('#element').popover('show')<\/code><\/p>\n<h3>4.2 <strong>.popover(&#8216;hide&#8217;)<\/strong><\/h3>\n<p>Hides an element&#8217;s popover. <strong>Returns to the caller before the popover has actually been hidden<\/strong> (i.e. before the <code>hidden.bs.popover<\/code> event occurs). This is considered a &#8220;manual&#8221; triggering of the popover.<\/p>\n<p><code>$('#element').popover('hide')<\/code><\/p>\n<h3>4.3 <strong>.popover(&#8216;toggle&#8217;)<\/strong><\/h3>\n<p>Toggles an element&#8217;s popover. <strong>Returns to the caller before the popover has actually been shown or hidden<\/strong> (i.e. before the <code>shown.bs.popover<\/code> or <code>hidden.bs.popover<\/code> event occurs). This is considered a &#8220;manual&#8221; triggering of the popover.<\/p>\n<p><code>$('#element').popover('toggle')<\/code><\/p>\n<h3>4.4 <strong>.popover(&#8216;destroy&#8217;)<\/strong><\/h3>\n<p>Hides and destroys an element&#8217;s popover. Popovers that use delegation (which are created using the <code>selector<\/code> option) cannot be individually destroyed on descendant trigger elements.<\/p>\n<p><code>$('#element').popover('destroy')<\/code><\/p>\n<h2>5. Events<\/h2>\n<p><strong>show.bs.popover<\/strong> &#8211; This event fires immediately when the <code>show<\/code> instance method is called.<\/p>\n<p><strong>shown.bs.popover<\/strong> &#8211; This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).<\/p>\n<p><strong>hide.bs.popover<\/strong> &#8211; This event is fired immediately when the <code>hide<\/code> instance method has been called.<\/p>\n<p><strong>hidden.bs.popover<\/strong> &#8211; This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).<\/p>\n<p><strong>inserted.bs.popover<\/strong> &#8211; This event is fired after the <code>show.bs.popover<\/code> event when the popover template has been added to the DOM.<\/p>\n<p>Example:<\/p>\n<pre class=\"brush:js\">\r\n$('#myPopover').on('hidden.bs.popover', function () {\r\n  \/\/ do something\u2026\r\n})\r\n<\/pre>\n<h2>6. Conclusion<\/h2>\n<p>To conclude, I would just like to add that this is yet another elegant way to place content in your web pages, allowing clean interface and quite good design that you would otherwise need to start from scratch.<\/p>\n<h2>7. Download<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/12\/Boostrap-Popover.zip\"><strong>Boostrap Popover<\/strong><\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this example, we&#8217;ll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user clicks on an element. The difference is that the popover can contain much more content. Plugin dependency: Popovers require the tooltip plugin (tooltip.js) to be included in your &hellip;<\/p>\n","protected":false},"author":75,"featured_media":8515,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[284],"tags":[],"class_list":["post-9336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bootstrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bootstrap Popover Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In this example, we&#039;ll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap Popover Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In this example, we&#039;ll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/fabiocimo\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-22T14:11:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-08T11:23:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Fabio Cimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fabiocimo\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabio Cimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\"},\"author\":{\"name\":\"Fabio Cimo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\"},\"headline\":\"Bootstrap Popover Example\",\"datePublished\":\"2015-12-22T14:11:50+00:00\",\"dateModified\":\"2018-01-08T11:23:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\"},\"wordCount\":1080,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg\",\"articleSection\":[\"Bootstrap\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\",\"name\":\"Bootstrap Popover Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg\",\"datePublished\":\"2015-12-22T14:11:50+00:00\",\"dateModified\":\"2018-01-08T11:23:35+00:00\",\"description\":\"In this example, we'll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/css\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bootstrap\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/css\/bootstrap\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Bootstrap Popover Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\",\"name\":\"Fabio Cimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"caption\":\"Fabio Cimo\"},\"description\":\"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.\",\"sameAs\":[\"https:\/\/www.facebook.com\/fabiocimo\",\"https:\/\/al.linkedin.com\/in\/fabiocimo\",\"https:\/\/x.com\/fabiocimo\",\"https:\/\/www.youtube.com\/fabiocimo1\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap Popover Example - Web Code Geeks - 2026","description":"In this example, we'll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/","og_locale":"en_US","og_type":"article","og_title":"Bootstrap Popover Example - Web Code Geeks - 2026","og_description":"In this example, we'll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user","og_url":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/fabiocimo","article_published_time":"2015-12-22T14:11:50+00:00","article_modified_time":"2018-01-08T11:23:35+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg","type":"image\/jpeg"}],"author":"Fabio Cimo","twitter_card":"summary_large_image","twitter_creator":"@fabiocimo","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Fabio Cimo","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/"},"author":{"name":"Fabio Cimo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22"},"headline":"Bootstrap Popover Example","datePublished":"2015-12-22T14:11:50+00:00","dateModified":"2018-01-08T11:23:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/"},"wordCount":1080,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg","articleSection":["Bootstrap"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/","url":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/","name":"Bootstrap Popover Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg","datePublished":"2015-12-22T14:11:50+00:00","dateModified":"2018-01-08T11:23:35+00:00","description":"In this example, we'll be creating and using Bootstrap popovers. The Popover plugin is similar to tooltips, it is a pop-up box that appears when the user","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/bootstrap-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/css\/bootstrap\/bootstrap-popover-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/www.webcodegeeks.com\/category\/css\/"},{"@type":"ListItem","position":3,"name":"Bootstrap","item":"https:\/\/www.webcodegeeks.com\/category\/css\/bootstrap\/"},{"@type":"ListItem","position":4,"name":"Bootstrap Popover Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22","name":"Fabio Cimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","caption":"Fabio Cimo"},"description":"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.","sameAs":["https:\/\/www.facebook.com\/fabiocimo","https:\/\/al.linkedin.com\/in\/fabiocimo","https:\/\/x.com\/fabiocimo","https:\/\/www.youtube.com\/fabiocimo1"],"url":"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/9336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=9336"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/9336\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/8515"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=9336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=9336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=9336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}