Reveal Content on Click

Description

06.26c15v1 Reveal Content on Click

#1. Install Code

Note: You need to install Section Loader Supreme Plugin

#1.1. First, create a Page in Not Linked with Name/URL

  • Name: Reveal About
  • URL: /reveal-about

06.26c15v1 Reveal Content on Click

#1.2. Add your desired content

06.26c15v1 Reveal Content on Click

#1.3. Hover on top right of section (section where you want to apply code) > Click EDIT SECTION

06.26c15v1 Reveal Content on Click

at Design > Anchor Link > enter word: footer-reveal

06.26c15v1 Reveal Content on Click

#1.4. Hover on page where want to apply code > Click Gear icon

06.26c15v1 Reveal Content on Click

Click Advanced > Paste this code

  • If you use Personal/Basic Plan and your plan doesn’t support Injection, see #3.1.
<!-- 06.26c15v1 Reveal Content on Click -->
<script>
window.RevealPanelConfig = {
  links: [
    { 
      selector: 'a[href="/about"]', 
      source: "/reveal-about" },
    { 
      selector: 'a[href="/contact"]', 
      source: "/reveal-contact" }
  ],
  animationDuration: 500
};
</script>
<script src="https://code.beaverhero.com/wm/0626c15v1revealcontentclick.js">
</script>

06.26c15v1 Reveal Content on Click

#1.5. Update URL in Line 06

  • This line mean, if users click on link /about will slide up content from /reveal-about you created above
selector: 'a[href="/about"]',

You can ignore Line 09, Line 10. This is sample code in case you need to apply the effect to multiple different links.

#2. Customize

#2.1. To change height of Reveal Content, like this

06.26c15v1 Reveal Content on Click

You can use this code to Custom CSS box

/* reveal height */
div#wm-reveal-overlay {
    height: 300px !important;
}
/* Close icon position, = reveal height + 5px */
button#wm-reveal-close {
    top: unset !important;
    bottom: 305px;
}

#3. Other

#3.1. If you use Personal/Basic Plan and your plan doesn’t support Injection, you can add a Block

05.26c16v1 Hover Text Show Image Follow Cursor

Choose Markdown

04.26c10v2 Header Sound Icon

Paste this code

<script>
window.RevealPanelConfig = {
  links: [
    { 
      selector: 'a[href="/about"]', 
      source: "/reveal-about" },
    { 
      selector: 'a[href="/contact"]', 
      source: "/reveal-contact" }
  ],
  animationDuration: 500
};
</script>
<script src="https://code.beaverhero.com/wm/0626c15v1revealcontentclick.js">
</script>

06.26c15v1 Reveal Content on Click

Buy me a coffee