If you look at the defaults for location
and popTrigger
they have single quotes around them…
Assuming this is correct you need to add these around the new location value, so it does not think bottom
is an (undefined) javascript variable, but rather a string value, via providing 'bottom'
…
Or if you don’t want to modify code to add the single quotes, you could also just do: [gf_popup pause="1000" location="'bottom'"]
to pass the single quotes in via the shortcode attribute.
Related Posts:
- Custom Shortcodes Giving error on development site
- contact form 7 database short codes [closed]
- Shortcode, Concatenating & Parse error: syntax error, unexpected T_FOREACH
- Conditionally Loading JavaScript/CSS for Shortcodes
- Show shortcode without executing it
- shortcodes output before content [duplicate]
- Run visual composer code in php page
- Using shortcode in Post title
- WordPress adds br in between my shortcode
- PHP Deprecated: Non-static method should not be called statically
- Shortcodes, HTML tables, and multiple rows
- Audio or playlist shortcode condition according to the amount of files on attachment page
- Does a shortcode with a single attribute have to use an array?
- How navigation works in custom loop within shortcode?
- Use [shortcode=”value”] instead of [shortcode att=”value”]?
- I dont want to show shortcode in tag
- Post loop created via shortcode not displaying shortcode in content
- Pass shortcode variables to template
- passing multiple parents value into a shortcode
- Is it possible to add a repeater field to TinyMCE’s option window?
- Shortcodes: Pros and Cons
- esc_attr not working in shortcode
- Raw output (preventing wpautop)
- Conditionally loading Facebook PHP SDK in shortcode
- Can’t understand $atts in functions?
- Are .MP3 files with capital letter extensions allowed in [audio] shortcode?
- How to handle shortcodes when using the JSON API
- Are shortcode functions applied while rendering the content, or are they executed and stored with the post content?
- is_admin() returns false in save_post hook with Gutenberg editor
- Get Posts shortcode plugin and meta_query?
- possibility to control embedded video timeline with buttons and links external to the player
- WordPress Gallery shortcode: Display one category ID only
- How to get gallery id inserted to a post?
- WordPress Shortcode show database row
- Video Shortcodes not working in WordPress
- Custom shortcode is not working in text widget
- Get post object in shortcode function
- How to insert image and text from admin panel throughout my theme
- Use shortcodes in terms description? [closed]
- Adding to the_content or a variable from within a shortcode function
- Custom Shortcode: define cursor position/insertion point?
- Shortcode: text content ends up outside html tags
- show shortcodes in editor
- Page code showing in WP Dashboard
- echo do_shortcode just prints the shortcode name and not its content
- Insert shortcode between ”
- Create a shortcode to use in visual editor
- Basic do shortcodes question
- What is this format called (nested shortcodes)?
- Problem with height in video shortcode
- How to build dynamic pages?
- Shortcode not showing $content in correct place
- Best tools for preparing and styling a table [closed]
- How to reload the shortcode content when the database is changing
- Best way to include reusable sections in page content
- Beginner’s question about shortcodes
- How can I insert a shortcode in the title tag of another?
- How to execute a shortcode outside the post content/entry in a theme?
- Metabox Keeps Stripping Parts of Shortcode
- Shortcode from admin textarea to page
- Form processing: How to process form before output and access data from shortcode
- How to Retrieve data of Gallery Shortcode and display it above a post
- Checking post content for a shortcode, but content is being returned as empty
- Wrap php in shortcode
- Adding my own custom woocommerce shortcode to child theme, how?
- contact form 7 :create shortcode usable in email message [closed]
- Better way to display multiple plugin output on the same page?
- get_queried_object_id / short code returning blank
- Shortcode won’t take into account custom post ID put in parameter
- How to utilise multiple values from a single shortcode attribute?
- JavaScript missing from shortcode content
- Multiple shortcodes with embedded JavaScript code in same page, how?
- How to Call Related Post based on Categories Inside Post Content with Shortcode?
- SQL query to bulk change short code in all posts
- Display shortcode in text field with wordpress settings api
- How to strip header tags & shortcodes from the_excerpt()
- shortcode display metainformation as linked image
- Multiple shortcodes only use attributes from one of the shortcodes on custom plugin
- Cannot modify class property from shortcode handler function
- Reusable Dynamic Taxonomy Shortcode
- How do i remove Business feeds Shortcode fatal error
- Can’t place endwhile in the loop properly in a shortcode
- How to reduce the image size inside an icon? [closed]
- How to insert visual compser post grid shortcode in a custom page template? [closed]
- WordPress plugin shortcodes not outputting anything
- Shortcode tags appear on mobile themes
- Manipulated shortcode output
- Where is escaped the shortcode?
- Str_replace using shortcode with multiple changes
- Changing layout of defaul gallery output to masonry
- shortcode change variable base on user
- Inserting shortcode is blanking excerpt – any ideas?
- Previous/Next with the same category
- I’ve broken the short code for Contact Form 7!
- How to remove https:// from shortcode generated url
- How to enable on custom shortcodes
- Nested ShortCode works inside the_content, but not outside of it
- wordpress how to sort posts on custom data with plug-in “Search & Filter”
- How to reuse php templates as shortcodes?
- Shortcode attributes from meta query variables