Wrap your shortcode in a div and give it an ID that you can use as a target when triggering your popup. For example, you can put the shortcode somewhere on your page (content, sidebar, etc) as follows:
<div id="popup" class="lightbox">[contact-form-7 id="1735" title="Contact form 1"]</div>
and the link that trigges the popup will look something like
<a href="#popup">Form</a>
You might have to use do_shortcode() in some cases, depending on where and how you add the shortcode.
Related Posts:
- How to add stylesheets only to pages with specific shortcode?
- Hide/show content starting in the middle of a paragraph
- How to add ‘class’ attribute into shortcode [audio]?
- How to link to a alternative page in CSS
- Video size and border radius using a shortcode
- Is it possible to ignore the first Line Break in a preformatted Div from a shortcode?
- How can I included CSS to a page or a shortcode? [closed]
- Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes
- Make shortcode’s Bootstrap CSS override the theme’s CSS, how?
- Using _e() on text inside video tags prints that text, instead of only showing when html5 element is not supported
- How to display html element and php string in the same line?
- Modify [caption] shortcode so and are not used?
- the_excerpt displaying code inside style tag
- How to fix transparency in product sliders / featured products on home page?
- Loading shortcode stylesheet only when shortcode is in text widget [closed]
- Shortcode empty attribute
- Using wp_editor in shortcode
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- Native “playlist” shortcode random playing… How?
- How to display the names of users from a specific group with a shortcode?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- Using audio shortcode for .mp3 URLs with a query string
- Get multiple shortcode attribute values
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- How to display some selected user meta data on a specific page with a shortcode?
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- How to save a shortcode in a Gutenberg custom block?
- Is shortcode_unautop() broken?
- Shortcode displays only default attribute values
- Can a shortcode function this way
- Dynamically create shortcodes using add_shortcode and a callback
- Passing attributes to shortcode dynamically
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Stop parsing shortcodes
- Meta tags in shortcode
- Gist shortcode is not working
- Display post metadata: “title, category, author, date” with shortcode
- shortcode javascript not working on custom template file inside theme folder
- shortcode get thumbnail size
- Check if post has gallery images/media
- Layer post title on top of image WordPress featured thumbnail image
- Stop auto formatting in shortcodes
- Get URL Param Plugin and Inserting Result in Widget Code
- Problem with using custom shortcode with ACF WYSIWYG field
- Add shortcode support to custom field
- Preserve shortcode content formatting
- Shortcode help: If no image entered take default
- Populate shortcodes with table data and get next row
- Reloading a Mediaelement audio player
- Shortcode is not processed when added to option field using wp_editor
- How to apply an ID to Shortcode Embedded iframe
- Adding Shortcode Values to wp_head
- Shortcodes: closing shortcode not being processed
- Retrieving post excerpt as a shortcode
- Insert PHP code via shortcode?
- Trying to call dynamic content as a shortcode attribute
- What is the correct syntax to append a URL using a shortcode for an iframe?
- Shortcodes in RSS excerpts
- If else with shortcodes
- enqueue script with get_shortcode_regex
- How to set a variable in a shortcode and reference it in another shortcode in the same post?
- How to insert HTML/CSS/JS into my iframe plugin?
- How to get_post_meta in a shortcode in excerpt on archive pages
- WordPress upgrade adding additional quote marks to shortcode output
- How to build a shortcode for tabs
- Creating tabs shortcode
- SImple Example To Update User Info From Front End [duplicate]
- using shortcodes in theme content
- How to: Simple Nested Shortcode [closed]
- Equal height sections in custom Headway Theme
- get_posts not working on homepage?
- ACF repeater + group shortcode
- Custom shortcode skips every 2nd shortcode
- Wrap template code with shortcodes
- Gutenberg Shortcode Chooser Block
- How to cache a custom API call?
- Shortcode custom query not passing value
- How to create custom variables in wordpress
- Unknow shortcode read on display site
- Onclick want to call shortcode in wordpress
- Working with Contact Form 7 pipes
- How to disable cache for the content returned by a shortcode
- Hide shortcodes content from the excerpt?
- Can we create a shorcode to move next page?
- launch a shortcode from a link
- how to add acf value to other plugins shortcode?
- Only execute specific shortcodes
- About redundant code when I use shortcode to output the HTML from a variable
- how to show last 5 images from the one post gallery
- Add JavaScript in footer if shortcode used in page [duplicate]
- Is there a way I can return terms by name using a shortcode?
- Help with Shortcode Functionality
- Shortcode Site include in a other
- Shortcode with foreach
- How do write this type shortcode? [closed]
- WordPress functions.php shortcode is not working [closed]
- My first WordPress shortcode just returning []