HTML Code

Hi - I am a therapist and I use a software called “Simple Practice” for booking clients. Simple Practice has a new booking widget that is HTML code that I would like to add to my Wix website. Each time I add an HTML object to my website and insert the code (code comes from Simple Practice), it opens the booking widget in the same page, rather than opening a new window. Siimple practice stated that I need to add the attribute target “_blank” to the HTML Code but I am not sure where exactly this goes, as I am not a coder. Does any one have any suggestions or can you help me? Thank you!

Hi Marian,

Welcome to the Wix Code forums.

The behavior as you describe makes sense. The HtmlComponent is on a web page, the widget code you want is in the HtmlComponent, so the widget opens up on that same page.

If you want the widget to open on another page, you could perhaps add a button or a link which links to a page containing the widget (which of course will need to be in an HtmlComponent.

I hope this helps.

Yisrael

Thanks! It mostly makes sense. I am able to do that, but it adds another step for clients when trying to book with one of us. The code that Simple Practice gave me is below. They stated to add the attribute target “_blank”. Is there any way to “fix” this so that we don’t have to add another step? Thank you in advance!

.spwidget-button-wrapper{text-align: center}.spwidget-button{display: inline-block;padding: 12px 24px;color: #fff !important;background: #de6a26;border: 0;border-radius: 4px;font-size: 16px;font-weight: 600;text-decoration: none}.spwidget-button:hover{background: #d15913}.spwidget-button:active{color: rgba(255, 255, 255, .75) !important;box-shadow: 0 1px 3px rgba(0, 0, 0, .15) inset}
Request Appointment

Hi Marian,

I tried your code snippet in an HtmlComponent using both the Safari and Chrome browsers and it in fact worked on the same page.

The behavior your see may be a result of your user browser setttings or may even be dependent on the which browser you are usiing. This may not be possible to override in code.

What browser are you using. Do you have particular tab/window settings that may interfere?

Yisrael

Hi - I am using Safari. Thank you so much for your help. We went forward with your previous suggestion of adding a button that links to a page with the widget and that is working just fine. Thank you so much for your help!

Marian

Hi. I am also having the same issue with Simple Practice. I added the button but now I’m stuck with what to do with the code. Please help! :slight_smile:

Adding code to an HTML component is not a part of the Corvid product (which is what this forum is about). The basics of an HTML component is to put any HTML code in it. That code can be copied from any source that you want, but you need to know the exact code to put there (which is not related to Corvid )… You will need to check with the service provider to find out how to get it work.

This is a very old thread and I am closing it.