javascript – Code is not executing, instead is showing on website


My client provided me with code from to place a seal on their website showing they are verified. When I add this code, instead of executing, it just displays the code on the website.

I’ve tried several things:

  • Added to the Footer widget as HTML code.
  • Added to a single page
  • Added to the Insert Headers and Footers plugin

Each time it displays the code instead of running it.

<!-- (c) 2005, 2021. Authorize.Net is a registered trademark of CyberSource Corporation -->
<div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="caa26252-4f62-466a-b951-026e00a3c1ed";</script> <script type="text/javascript" language="javascript" src="//"></script> </div>

Do you see anything wrong with the code that may be preventing it to run properly? Is there somewhere else I should place this code for it to execute?

Screenshot shows how the website is displaying the code. The correct action is for it to only show the image as a link. When clicked it opens a popup showing verification.

enter image description here

coreyphall 1 year 2021-09-26T09:42:32-05:00 0 Answers 0 views 0

Leave an answer