Image Overlay with Text, Description, Button

Description

07.26c20v1 Image Overlay with Text, Description, Button

#1. Install Code

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

06.26c23v5 Image Block Caption v2

To make 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

#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
<!-- 07.26c20v1 Image Overlay with Text, Description, Button -->
<script>
window.ImageCaptionV2Config = {
  layout: "overlay",
  textClass: "",
  size: "16px",
  sizeMobile: "14px",
  color: "#ffffff",
  overlayBackground: "rgba(0,0,0,0.55)",
  overlayTransition: "0.4s",
  overlayEasing: "ease",
  overlayMobileDelay: 3000,
  showButton: true,
  buttonText: "Learn more",
  buttonSize: "14px",
  buttonSizeMobile: "12px"
};
</script>
<script src="https://code.beaverhero.com/imageblock/0726c20v1imageoverlaytextbutton.js"></script>

07.26c20v1 Image Overlay with Text, Description, Button

#2. Customize

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

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

#2.2. To change overlay color, change Line 09

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

#2.3. To change button text/style, change line 14, 15, 16

buttonText: "Learn more",
  buttonSize: "14px",
  buttonSizeMobile: "12px"

#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",
  textClass: "",
  size: "16px",
  sizeMobile: "14px",
  color: "#ffffff",
  overlayBackground: "rgba(0,0,0,0.55)",
  overlayTransition: "0.4s",
  overlayEasing: "ease",
  overlayMobileDelay: 3000,
  showButton: true,
  buttonText: "Learn more",
  buttonSize: "14px",
  buttonSizeMobile: "12px"
};
</script>
<script src="https://code.beaverhero.com/imageblock/0726c20v1imageoverlaytextbutton.js"></script>

07.26c20v1 Image Overlay with Text, Description, Button

Buy me a coffee