Make a button to trigger popup
-
Hi, i’m trying make a button to open the popup but i really don’t know how to make it. I’m a little confused.
1. My popup CSS Classes are popmake-1816 and popmake-popup-contactform
2. I create a Click Open Trigger with this Extra Selector: .popbutton ?thats correct?
3. This is the piece of the code in my theme where is the button:
<section id="joinus-banner" class="joinus-banner" style="background-color: <?php echo esc_attr($bg_color); ?>"> <section class="inner-section"> <h3> <?php if($wpautop){ echo do_shortcode(htmlspecialchars_decode($text)); } else { echo wpautop(do_shortcode(htmlspecialchars_decode($text))); } ?> </h3> <div class="button"> <a href="<?php echo esc_attr($title); ?>"><?php echo esc_attr($title); ?></a> </div> </section> </section>
I tried different changes on the code but noone functions. ?Can you help me?
4. I also intented to insert a link/button to open the popup on a post but i couldn’t find the way. If you can help me with and example with my own popup maker code i would be more than grateful.
Thanks in advance.
- The topic ‘Make a button to trigger popup’ is closed to new replies.