Image Block Caption v2

Description

  • adding caption to Image Block, you can set caption under image or overlay image, make caption/image clickable
  • view demo – password: abc
  • buy me a coffee

06.26c23v5 Image Block Caption v2

#1. Install Code

#1.1. Make sure you added Text to ALT (You can enter URL if you want)

06.26c23v5 Image Block Caption v2

#1.2. Hover on top right of Section > Click EDIT SECTION

06.26c23v5 Image Block Caption v2

#1.3. At Design > Anchor Link, enter word: img-captionv2

06.26c23v5 Image Block Caption v2

#1.4. Hover on Page where you use Image Blocks > Click Gear icon

06.26c23v5 Image Block Caption v2

#1.5. Click Advanced > Paste this code to right box

  • If you use Personal/Basic Plan and your plan doesn’t support Injection, see #3.1
<!-- 06.26c23v5 Image Block Caption v2 -->
<script>
window.ImageCaptionV2Config = {
  layout: "overlay", /* grid or overlay */
  textClass: "",
  size: "16px",
  sizeMobile: "14px",
  color: "#ffffff",
  overlayBackground: "rgba(0,0,0,0.55)",
  overlayTransition: "0.4s",
  overlayEasing: "ease",
  overlayMobileDelay: 3000
};
</script>
<script src="https://code.beaverhero.com/imageblock/0626c23v5imageblockcaptionv2.js"></script>

06.26c23v5 Image Block Caption v2

#2. Customize

#2.1. To make title appears under Image, like this

06.26c23v5 Image Block Caption v2

You can change Line 04

layout: "overlay", /* grid or overlay */

to this

layout: "grid", /* grid or overlay */

#2.2. To change caption text size/color, change Line 06, Line 07, Line 08

size: "16px",
sizeMobile: "14px",
color: "#ffffff",

#2.3. To change overlay color, change Line 09

overlayBackground: "rgba(0,0,0,0.55)",

#2.4. To break text to 2 lines like this

06.26c23v5 Image Block Caption v2

You can add symbol ## between text tin ALT

Oracle ## Just another text

06.26c23v5 Image Block Caption v2

#3. Other

#3.1. If you use Personal/Basic Plan and your plan doesn’t support Injection, you can edit current section (section where you use Image Blocks) > Add a Block

05.26c16v1 Hover Text Show Image Follow Cursor

Choose Markdown

04.26c10v2 Header Sound Icon

Add this code into Markdown

<script>
window.ImageCaptionV2Config = {
  layout: "overlay", /* grid or overlay */
  textClass: "",
  size: "16px",
  sizeMobile: "14px",
  color: "#ffffff",
  overlayBackground: "rgba(0,0,0,0.55)",
  overlayTransition: "0.4s",
  overlayEasing: "ease",
  overlayMobileDelay: 3000
};
</script>
<script src="https://code.beaverhero.com/imageblock/0626c23v5imageblockcaptionv2.js"></script>

06.26c23v5 Image Block Caption v2

 

Buy me a coffee