Click Button – Show Video

Description

07.26c31v10 Click Button Show Video

#1. Install Code

#1.1. First, add some Button Blocks, something like this

07.26c31v10 Click Button Show Video

#1.2. Add some Video Blocks & add text LINK to Video description, like this

07.26c31v10 Click Button Show Video

#1.3. Make sure you enter URL to text “LINK” same as link in Button Block (code will match the URLs of both to ensure the effect works correctly)

07.26c31v10 Click Button Show Video

#1.4. Next, hover on top right of section > click EDIT SECTION > at Design > Anchor Link > enter word: cbsv

07.26c31v10 Click Button Show Video

#1.5. Hover on Page where you use Button Blocks > Click Gear icon

07.26c31v10 Click Button Show Video

#1.6. Click Advanced > Paste this code

  • If you use Personal/Basic Plan and your plan doesn’t support Injection, you can see #3.1
<!-- 07.26c31v10 Click Button - Show Video -->
<script>
window.CBSVConfig = {
  sectionSelector: 'section[id*="cbsv"]',
  buttonSelector: '.sqs-block-button-element',
  videoBlockSelector: '.sqs-block-video',
  captionSelector: '.video-caption-wrapper',
  captionLinkSelector: '.video-caption a',
  hideCaptionLink: true,
  showVideoOnInitial: true,
  initialActiveUrl: '',
  pauseOnSwitch: true,
  pauseMode: 'reset',
  activeButtonStyle: {
    background: '#111111',
    color: '#ffffff'
  }
};
</script>
<script src="https://code.beaverhero.com/buttonblock/0726c31v10clickbuttonshowvideo.js"></script>

07.26c31v10 Click Button Show Video

#2. Customize

#2.1. To adjust style of active button, change this line

activeButtonStyle: {
  background: '#111111',
  color: '#ffffff'
}

#3. Other

#3.1. If you use Personal/Basic Plan and your plan doesn’t support Code Injection, you can edit current page > Add a Markdown Block.

04.26c10v2 Header Sound Icon

Use this code into Markdown Block.

<script>
window.CBSVConfig = {
  sectionSelector: 'section[id*="cbsv"]',
  buttonSelector: '.sqs-block-button-element',
  videoBlockSelector: '.sqs-block-video',
  captionSelector: '.video-caption-wrapper',
  captionLinkSelector: '.video-caption a',
  hideCaptionLink: true,
  showVideoOnInitial: true,
  initialActiveUrl: '',
  pauseOnSwitch: true,
  pauseMode: 'reset',
  activeButtonStyle: {
    background: '#111111',
    color: '#ffffff'
  }
};
</script>
<script src="https://code.beaverhero.com/buttonblock/0726c31v10clickbuttonshowvideo.js"></script>

07.26c31v10 Click Button Show Video

Buy me a coffee