I’m trying to create a Client Login Button using instructions from a 3rd party. I’ve taken this script and added it to the header via the Tracking & Analytics panel (per the 3rd party instructions).
<script>// <![CDATA[
!function(e,t){e._cc={}, e._cc.host="https://www.coachingcloud.com/";var n=function(){var n=t.createElement("script"),c=t.getElementsByTagName("script")[0];n.src=e._cc.host+"login.min.js",c.parentNode.insertBefore(n,c)};e.addEventListener?e.addEventListener("load",n,!1):e.attachEvent("onload",n)}(window,document);
// ]]></script>
When I place this HTML on the page, it fails to work properly with the script.
<span id="cc-login"><a class="cc-login">Client Login</a></span>
Is there a solution for implementing this? Ideally the Client Login button will appear in the header of the site and display the 3rd party Sign-In widget.
I believe you would be better suited going through Wix Support about this issue as it is not a code issue but embedding custom code in the Editor.
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.
The 3rd party instructions stated to add the script into the of the website and then the HTML for the button. When I searched support and also contacted Wix partners in the arena, they all directed me to find a Corvid expert since I’m learning on a customization that extends beyond Wix’s standard functionality.
Read the Wix page about using HTML code from third party providers.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
Wix cannot provide support for external codes that were not created or tested with Wix.
If you are experiencing an issue with your code snippet, please contact the provider directly.
You have used the add custom code to a new tool in the Tracking and Analytics section, so they give you a first piece of code that goes in the head section of the tool. Then you have another piece of code that goes into the html iframe on your actual page.
https://support.wix.com/en/article/embedding-custom-code-to-your-site
Again, as your html code is from a third party provider, which in this case looks to be Coaching Cloud, then you need to be going back to their own support team and asking them directly how to get it working with Wix as Wix do not provide support for third party code.
Plus, note Coaching Cloud’s own website statements…
https://www.coachingcloud.com/about#faq
Can I integrate this with my website ?
- Yes you can. You can have a link to a sign-up page or a pop up widget embedded into your website. This allows your clients to sign straight into your secure community on CoachingCloud. So you don’t have to worry about any server setup or security, we look after that for you.
According to them you don’t have to worry about any server side setup or security as that is looked after by them, so they should provide you with help to set it up for you.
Also, note that it states that you can have a link to a sign-up page or a popup widget.
Now note that if it is a pop up widget that you are trying to embed into Wix, then you might run into a few difficulties as Wix might not like the pop up widget itself.
Which again, would need the Coaching Cloud support to look into further themselves to see what is potentially being blocked by Wix or if the pop up widget is not working correctly due to how Wix are wrapping up the popup widget and the html code that you have used.
Finally, I would double check with Coaching Cloud to see if it is actually able to be integrated with Wix.