Pop Up on Team Block (Simple List)

Description

  • click Simple List image, open Popup
  • view demo – password: abc

03.26c10v1

03.26c10v1

#A. Install Code

#1. Business Plan/higher

#1.1. First, you need to create some pages in Not Linked with URL like this

/bio-popup01

03.26c10v1

/bio-popup02

03.26c10v1

#1.2. Add desired content to your Not Linked Pages

03.26c10v1

#1.3. Edit Simple List > Edit Button URL > use this format

#lightbox=/bio-popup01

03.26c10v1

#lightbox=/bio-popup02

03.26c10v1

#1.4. Hover on Page where you use Simple List > Click Gear icon

03.26c10v1

Click Advanced > Paste this code

<!-- @tuanphan - List Simple Image Lightbox -->
<script src="https://code.beaverhero.com/list/0326c10v1listpopup.js">
</script>
<style>
.fbio-popup .fancybox__content {
  max-width: 900px;
  width: 100%;
}
  .fbio-popup .fancybox__content .content-wrapper {
  	padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  li.list-item:hover img {
    filter: brightness(0.5) !important;
    transition: all 0.3s ease;
}
li.list-item img {
    transition: all 0.3s ease;
}
</style>

03.26c10v1

#2. Personal/Basic Plan

If your plan doesn’t support Injection, you can follow these.

#2.1. First, you need to create some pages in Not Linked with URL like this

/bio-popup01

03.26c10v1

/bio-popup02

03.26c10v1

#2.2. Add desired content to your Not Linked Pages

03.26c10v1

#2.3. Edit Simple List > Edit Button URL > use this format

#lightbox=/bio-popup01

03.26c10v1

#lightbox=/bio-popup02

03.26c10v1

#2.4. Add a Markdown Block on Current Page

04.26c03v1 Gallery Grid Sync Blog Turn to Carousel
Next, add this code into Markdown Block

<script src="https://code.beaverhero.com/list/0326c10v1listpopup.js">
</script>
<style>
.fbio-popup .fancybox__content {
  max-width: 900px;
  width: 100%;
}
  .fbio-popup .fancybox__content .content-wrapper {
      padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  li.list-item:hover img {
    filter: brightness(0.5) !important;
    transition: all 0.3s ease;
}
li.list-item img {
    transition: all 0.3s ease;
}
</style>

Pop Up on Team Block (Simple List)

#B. Customize

#1.1. To change lightbox overlay color, use this to Custom CSS

div.fancybox__backdrop {
    background-color: red !important;
}

#1.2. To make Popup on Button Click

03.26c10v1

Use this new code

<!-- Lightbox on list button click -->
<script>
var LightboxConfig = {
  triggerSelector: '.list-item-content__button-container a',
};
</script>
<script src="https://code.beaverhero.com/tp/fancybox5.js"></script>
<style>
  .fbio-popup .fancybox__content .content-wrapper {
  	padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
.fbio-popup .fancybox__content {
  max-width: 900px;
  width: 100%;
}
</style>

03.26c10v1

If you use Personal/Basic Plan and your plan doesn’t support Injection, you can add code to Markdown Block.

<script>
var LightboxConfig = {
  triggerSelector: '.list-item-content__button-container a',
};
</script>
<script src="https://code.beaverhero.com/tp/fancybox5.js"></script>
<style>
  .fbio-popup .fancybox__content .content-wrapper {
      padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
.fbio-popup .fancybox__content {
  max-width: 900px;
  width: 100%;
}
</style>

Pop Up on Team Block (Simple List)

 

Buy me a coffee