Title: Issue with MindBody Links
Last modified: January 23, 2025

---

# Issue with MindBody Links

 *  Resolved [kalik219](https://wordpress.org/support/users/kalik219/)
 * (@kalik219)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/issue-with-mindbody-links/)
 * Hi there,
 * I am facing an issue where I have embedded MindBody links in my WordPress site.
   An example of how I have implemented it is below.
 * In my functions.php, I have an enqueue function like so:
 *     ```wp-block-code
       function enqueue_mindbody_script() {    wp_enqueue_script('mindbody-widget', 'https://widgets.mindbodyonline.com/javascripts/healcode.js', array(), null, false);}add_action('wp_enqueue_scripts', 'enqueue_mindbody_script');
       ```
   
 * When I visit the page, I can see it loaded in the header.
 * Then, I have my Links embedded like so (this is just an example and not the real
   code):
 *     ```wp-block-code
       <a class="btn-tertiary text-sm lg:text-base border-0 hover:bg-transparent hover:text-light-brown shadow-none">	<healcode-widget data-version="##" data-link-class="link" data-site-id="##" data-mb-site-id="##"  data-bw-identity-site="true" data-type="account-link" data-inner-html="<?php echo esc_html(get_theme_mod('button_text', 'Account')); ?>" /></a>
       ```
   
 * When I click on a link like above or any other links (to buy a class for example),
   sometimes I get redirected to [https://cart.mindbodyonline.com/identity_callback](https://cart.mindbodyonline.com/identity_callback)
   with a message that says “We’re sorry, but something went wrong.” Other times
   on Chrome, a message pops up that says “Access blocked: mindbodyonline.com’s 
   request does not comply with Google’s policies.” On Firefox, one time I got a
   page that said “Firefox cannot open this page. To protect your security, signin.
   mindbodyonline.com will not allow Firefox to display the page if another site
   has embedded it. To see this page, you need to open it in a new window.”
 * Am I missing something? I followed the instructions to embed the Links in the
   site, but it seems like there is some type of auth error? Is there any way I 
   could force the Mindbody Links to open in a new window??
 * Any help is GREATLY appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissue-with-mindbody-links%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [kalik219](https://wordpress.org/support/users/kalik219/)
 * (@kalik219)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/issue-with-mindbody-links/#post-18262560)
 * I figured it out! My recommendation is not to use these widgets and to do this
   instead.
 * If anyone else runs into this, you can use the below for contracts or options:
 *     ```wp-block-code
       <a href="https://cart.mindbodyonline.com/sites/[YOUR STORE ID]/cart/<?php echo $contract ? 'add_contract' : 'add_service'; ?>?mbo_item_id=[YOUR PRICING OR CONTRACT OPTION ID]" class="btn-primary btn-link"> BUY NOW </a>
       ```
   
 * & you can use the following for a login/register link:
 *     ```wp-block-code
       <a href="https://cart.mindbodyonline.com/sites/[YOUR STORE ID]/client" class="btn-secondary w-full"> Login </a>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Issue with MindBody Links’ is closed to new replies.

## Tags

 * [body](https://wordpress.org/support/topic-tag/body/)
 * [embedded](https://wordpress.org/support/topic-tag/embedded/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [links](https://wordpress.org/support/topic-tag/links/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [kalik219](https://wordpress.org/support/users/kalik219/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/issue-with-mindbody-links/#post-18262560)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
