{"id":127,"date":"2022-10-12T07:25:35","date_gmt":"2022-10-12T07:25:35","guid":{"rendered":"https:\/\/freestyleacademy.rocks\/~LeoF\/?page_id=127"},"modified":"2025-11-14T22:39:55","modified_gmt":"2025-11-14T22:39:55","slug":"fancybox-examples","status":"publish","type":"page","link":"https:\/\/freestyleacademy.rocks\/~LeoF\/fancybox-examples\/","title":{"rendered":"FancyBox Examples"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">1. Here&#8217;s an example of using <a href=\"https:\/\/docs.google.com\/document\/d\/1-zZlSDh-ic42NuxATEja4CVq30fG2JwRMSlKtD_Fkpg\/edit?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">FancyBox to display a single or a gallery of images.<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Note that FancyBox Lightbox will fail if you left or right align an image. To get around that problem, insert a Column block with image in one column and text in the other column like this:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p class=\"wp-block-paragraph\">Here&#8217;s some text in a 2 column block with a small single thumbnail in the other column. When the image is small, people will want to click on it to see a large version so insert an image but make is small to force people to click on it.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1500\" height=\"340\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-1500x340.jpg\" alt=\"\" class=\"wp-image-146\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-1500x340.jpg 1500w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-300x68.jpg 300w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-768x174.jpg 768w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-1536x349.jpg 1536w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-2048x465.jpg 2048w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/roompanaramic-2000x454.jpg 2000w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><figcaption class=\"wp-element-caption\">Old Digital Media Room on old campus<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s a GALLERY of multiple  images &#8211; the center large one has FancyBox DISABLED on purpose.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-7 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"1200\" data-id=\"551\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2025\/06\/PosterReal.jpg\" alt=\"Set this text by adding text in the Alternative Text field on the right sidebar when you click on an image.\" class=\"wp-image-551\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2025\/06\/PosterReal.jpg 800w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2025\/06\/PosterReal-200x300.jpg 200w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"1200\" data-id=\"550\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2025\/06\/PosterAI.jpg\" alt=\"\" class=\"wp-image-550\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2025\/06\/PosterAI.jpg 800w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2025\/06\/PosterAI-200x300.jpg 200w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"682\" data-id=\"344\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/ZoeyB.jpg\" alt=\"\" class=\"wp-image-344\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/ZoeyB.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/ZoeyB-211x300.jpg 211w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"328\" data-id=\"337\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TheresaM.jpg\" alt=\"\" class=\"wp-image-337\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TheresaM.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TheresaM-300x205.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"328\" data-id=\"338\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/ThomasC.jpg\" alt=\"\" class=\"wp-image-338\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/ThomasC.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/ThomasC-300x205.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"351\" data-id=\"342\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/YhaliS.jpg\" alt=\"\" class=\"wp-image-342\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/YhaliS.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/YhaliS-300x219.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"637\" data-id=\"336\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaylorE.jpg\" alt=\"\" class=\"wp-image-336\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaylorE.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaylorE-226x300.jpg 226w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"320\" data-id=\"335\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaiL.jpg\" alt=\"\" class=\"wp-image-335\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaiL.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaiL-300x200.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large nolightbox\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"627\" data-id=\"334\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaeY.jpg\" alt=\"\" class=\"wp-image-334\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaeY.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/TaeY-230x300.jpg 230w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"328\" data-id=\"333\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/SkyG.jpg\" alt=\"\" class=\"wp-image-333\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/SkyG.jpg 480w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2023\/04\/SkyG-300x205.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n<\/figure>\n\n\n\n<div style=\"height:109px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. Here&#8217;s an example of <a href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">featuring a webpage with FancyBox<\/a>:<\/h3>\n\n\n<div class=\"wp-block-image wp-block-image alignleft size-large is-resized fancybox-iframe\">\n<figure ><a class=\"fancybox-iframe\" href=\"https:\/\/freestyleacademy.rocks\/~LeoF\/Poem.html\"><img decoding=\"async\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/Poem.png\" alt=\"Poetry\" style=\"width:202px;height:auto\"\/><\/a><figcaption class=\"wp-element-caption\">Click to hear poem<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The image on the left links to a webpage &#8211; this particular webpage features a photo and also audio playing in the background &#8211; audio that is the same as the text on the image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are instructions on <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">how to implement FancyBox for a <\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">w<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">e<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">b<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">p<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">a<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\">g<\/a><a href=\"https:\/\/docs.google.com\/document\/d\/1fa9OIopA-I4MBSWryrOb5yjuFZ1cUFaYj5aUfrSPhMQ\/edit?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">e<\/a>.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. Here&#8217;s an example of an <a href=\"https:\/\/docs.google.com\/document\/d\/1cmKY51haJItuEkNTHQk_n6072g4XYNFxMAQvUkgp1QM\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">image linked to display a YouTube Video with FancyBox<\/a>.<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full is-resized\"><a class=\"fancybox-youtube\" href=\"https:\/\/www.youtube.com\/watch?v=8i6YLEJhMpU\"><img loading=\"lazy\" decoding=\"async\" width=\"899\" height=\"519\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/YouTube-Image.jpg\" alt=\"Video of Letters F and A made of laser cut wood\" class=\"wp-image-158\" style=\"width:378px;height:216px\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/YouTube-Image.jpg 899w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/YouTube-Image-300x173.jpg 300w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/YouTube-Image-768x443.jpg 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/a><figcaption class=\"wp-element-caption\">Video of Letters F and A made of laser cut wood<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s some text wrapping around a small thumbnail that links to a video on YouTube. Note that the image is NOT a small resized YouTube block in WordPress. It&#8217;s an image, not a video but it&#8217;s linked to a video.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are i<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/document\/d\/1cmKY51haJItuEkNTHQk_n6072g4XYNFxMAQvUkgp1QM\/edit?usp=sharing\" target=\"_blank\">nstructions on how to implement FancyBox for a YouTube Video<\/a><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4. Here&#8217;s an example of <a href=\"https:\/\/docs.google.com\/document\/d\/1I2cI58XKp_sYcRZVIYeclYp0BQZ8UzL4IQwtX6ejBGQ\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">featuring a PDF with FancyBox<\/a><\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-medium\"><a class=\"fancybox-pdf\" href=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/EPOA.pdf\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"169\" src=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/EPOA-01-scaled-e1667179901409-300x169.jpg\" alt=\"\" class=\"wp-image-164\" srcset=\"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/EPOA-01-scaled-e1667179901409-300x169.jpg 300w, https:\/\/freestyleacademy.rocks\/~LeoF\/wp-content\/uploads\/2022\/10\/EPOA-01-scaled-e1667179901409.jpg 356w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Click to view PDF<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">On the left is a thumbnail image of the 1st page of a multi-page PDF. Clicking on the image will invoke FancyBox to display the entire PDF as an overlay on top of this current webpage (instead of completely replacing this content with the PDF content).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note the PDF caption to instruct the viewer to click on the image to view the entire PDF.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are instructions on <a href=\"https:\/\/docs.google.com\/document\/d\/1I2cI58XKp_sYcRZVIYeclYp0BQZ8UzL4IQwtX6ejBGQ\/edit?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">how to implement FancyBox for a PDF image<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Here&#8217;s an example of using FancyBox to display a single or a gallery of images. Note that FancyBox Lightbox will fail if you left or right align an image. To get around that problem, insert a Column block with image in one column and text in the other column like this: Here&#8217;s some text [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-127","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/pages\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":67,"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/pages\/127\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/pages\/127\/revisions\/783"}],"wp:attachment":[{"href":"https:\/\/freestyleacademy.rocks\/~LeoF\/wp-json\/wp\/v2\/media?parent=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}