{"id":136,"date":"2014-07-24T23:39:52","date_gmt":"2014-07-24T23:39:52","guid":{"rendered":"http:\/\/html5box.com\/blog\/?p=136"},"modified":"2014-07-24T23:39:52","modified_gmt":"2014-07-24T23:39:52","slug":"open-webpage-with-html5-lightbox","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/jquery-lightbox\/open-webpage-with-html5-lightbox\/","title":{"rendered":"Open webpage with HTML5 Lightbox"},"content":{"rendered":"<p><strong>Question<\/strong>:<\/p>\n<p>Hi Support-<\/p>\n<p>I was wondering how to go about Lightbox opening up a html page instead of a video?<\/p>\n<p>Second, I am using Ajax tabs to load pages. Will that be a problem? <\/p>\n<p>Thank you, let me know.<\/p>\n<p><strong>Answer<\/strong>:<\/p>\n<p>To open a webpage in the Lightbox, you can just add the class name to the link, for example:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;http:\/\/www.yoursite.com\/yourpage.htm&quot; class=&quot;html5lightbox&quot; data-width=&quot;960&quot; data-height=&quot;600&quot;&gt;Link to Page&lt;\/a&gt;\r\n<\/pre>\n<p>Ajax loading may be problem. If you experience any problem, after your Ajax loading finishes, you can try to call the HTML5 Lightbox API to re-initialise the script:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\njQuery(&quot;.html5lightbox&quot;).html5lightbox();\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Question: Hi Support- I was wondering how to go about Lightbox opening up a html page instead of a video? Second, I am using Ajax tabs to load pages. Will that be a problem? Thank you, let me know. Answer: To open a webpage in the Lightbox, you can just add the class name to &hellip; <a href=\"https:\/\/html5box.com\/blog\/jquery-lightbox\/open-webpage-with-html5-lightbox\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Open webpage with HTML5 Lightbox<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-html5-lightbox","category-jquery-lightbox"],"_links":{"self":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":1,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}