Title: Passing parameters from button
Last modified: March 5, 2019

---

# Passing parameters from button

 *  [rdb](https://wordpress.org/support/users/rdb/)
 * (@rdb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/passing-parameters-from-button/)
 * Looking for a little help. I have an install running the Brooklyn theme on the
   top level domain. On a subdomain is o a third-party platform where services can
   be purchased. From the main website, I want to set up pricing tables with buttons
   pointing to specific services on the subdomain. The pricing table is coming from
   WPBakery.This requires parameters to be sent in addition to the URL, as instructed
   by the third-party platform:
 * 1) Script added before </head>. This has been done.
    2) Link added to the button:
   [http://sub.domain.com/services/product](http://sub.domain.com/services/product)
   class=”xx-btn” data-service=444
 * This has also been done. Obviously the quotation marks and spaces are going to
   cause problems, so I replaced these with escape characters. No dice.
 * The desired outcome here would be an embedded pop-up would appear showing product
   details (product number 444, in this case). What I am seeing instead is a redirection
   to sub.domain.com.
 * With all of this in mind here’s an oddity. The Brooklyn theme has functionality
   to create its own pricing tables (albeit with less attractive style). If I add
   the entire link as noted in #2 above, without replacing spaces or quotation marks
   with escape characters, it works as expected. If I try this in the WPBakery pricing
   table, it still redirects to sub.domain.com. I do not want to use the theme provided
   pricing table functionality as it is less than satisfactory.
 * Can anyone shed some light on how I can make this work? Thanks.
    -  This topic was modified 7 years, 3 months ago by [rdb](https://wordpress.org/support/users/rdb/).

Viewing 1 replies (of 1 total)

 *  [danthefan](https://wordpress.org/support/users/danthefan/)
 * (@danthefan)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/passing-parameters-from-button/#post-11275965)
 * This absolutely depends on how the Frameworks is build.
    This looks like class
   and data attributes for html tags. If so, you don’t need to escape the quotation
   marks and spaces.
 * But this is not a WordPress Issue, you should refer to the Theme Developer.

Viewing 1 replies (of 1 total)

The topic ‘Passing parameters from button’ is closed to new replies.

## Tags

 * [buttons](https://wordpress.org/support/topic-tag/buttons/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [danthefan](https://wordpress.org/support/users/danthefan/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/passing-parameters-from-button/#post-11275965)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
