Editor removes code from page
-
I have a wordpress website where I wish to display pricing and allow a customer to purchase through the mindbody app. The MD_App provide a bit of script to allow that to happen, as follows;
<script src=”https://widgets.mindbodyonline.com/javascripts/healcode.js” type=”text/javascript”></script> <healcode-widget data-version=”0.2″ data-link-class=”healcode-pricing-option-text-link” data-site-id=”88231″ data-mb-site-id=”560331″ data-type=”pricing-link” data-inner-html=”Buy Now” data-service-id=”100004″ />However the editor strips out the <healcode-widget… > section when moving from text to visual. The code works when in preview mode, but then switching to visual and /or updating, removes that vital bit of <healcode-widget> code. Is the editor being too smart by half, or is there something else going on?
I suggest it’s a bug in the editor, but … I don’t care what is causing the problem, but I would like a fix / workaround please. Does anyone have any suggestions please?
Note: I tried to enclose all of the code within an anchor tag ie … and also tried it within a span tag (ie <span style=”color:#ee8d43;”> … ), but that didn’t work.Edit: Update: Have have found an alternative solution, which is a total re-write of the links. ;-(
The webpage now works, however, this is a work around.Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Editor removes code from page’ is closed to new replies.