Embedded HTML Stopped Working
-
I have an embeddable store on my website and the store uses an html code to function. I’ve had the store on my website for around a year now. When I went to make some adjustments to my website again this past month, I realized the embedded store no longer shows up. I’m not sure why it no longer works. After trying some troubleshooting and playing with the code, I’ve had no success (I’m a beginner). I tried putting the code using Text and also using a Raw HTML widget on the back end WordPress Editor. Below is the code.
<div id="my-store-1208150"></div> <div><script src="http://app.ecwid.com/script.js?1208150" type="text/javascript" charset="utf-8"></script><script type="text/javascript">// <![CDATA[ xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","id=my-store-1208150"); // ]]></script></div> <div id="my-search-1208150"></div> <div><script src="http://app.ecwid.com/script.js?1208150" type="text/javascript" charset="utf-8"></script><script type="text/javascript">// <![CDATA[ xSearchPanel("id=my-search-1208150"); // ]]></script></div> <script type="text/javascript"><!-- document.write(unescape("%3Cscript id='pap_x2s6df8d' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") + "realmdynamics.postaffiliatepro.com/scripts/trackjs.js' type='text/javascript'%3E%3C/script%3E"));//--> </script> <script type="text/javascript"><!-- PostAffTracker.setAccountId('default1'); try { var AffiliateID='03f2e6c3'; PostAffTracker.track(); } catch (err) { } //--> </script>-
This topic was modified 7 years, 10 months ago by
Steven Stern (sterndata).
The page I need help with: [log in to see the link]
-
This topic was modified 7 years, 10 months ago by
-
Your site uses
httpsbut you’re calling your external code withhttp, so it’s blocked by the browser. Change all thehttplinks in your script tohttps.-
This reply was modified 7 years, 10 months ago by
Steven Stern (sterndata).
“Blocked loading mixed active content “http://app.ecwid.com/script.js?1208150””
Try replacing http: with https: to all of your calls to that script – and if your store program vendor does not support https then you need to replace it, but I can’t imagine that they don’t if it’s still being maintained, its standard in ecommerce these days. It also may require a switch in your store settings to serve to an SSL
You can avoid conflicts in calling to a server you don’t know if you should use http or https, by using // “//app.ecwid.com/script.js?1208150” but your problem is that you are using ssl and calling to unencrypted content on the store server,
Thanks! I needed to activate my SSL certificate on my website.
Hi @spiritrek,
Another solution here is to use the Ecwid’s official plugin for WordPress instead of copying and pasting embedded code. The plugin always uses https links and you won’t have this problem if you use the plugin.
Thanks,
Moderator note: Edited to add this link:
https://ww.wp.xz.cn/plugins/ecwid-shopping-cart/
-
This reply was modified 7 years, 10 months ago by
Steven Stern (sterndata).
-
This reply was modified 7 years, 10 months ago by
The topic ‘Embedded HTML Stopped Working’ is closed to new replies.