JSON Code Validating

JSON Code Validating

TrendyContainer
Visitor
1 0 0

Hello, I intend to add a Mobicred instalment widget on dawn theme using the HTML code below and the file cannot update due to invalid JSON in tag 'schema'. Your help will be highly appreciated. Here's the code: 

<div id="mobicred-widget"></div> <script src="[mobicred.co.za/widget.js](https://mobicred.co.za/widget.js)"></script> <script> [MobicredWidget.init](http://MobicredWidget.init)({ amount: 1000, // Replace with the actual amount element Id: 'mobicred-widget', text: 'Pay with Mobicred', font: 'Arial', color: '#000000', layout: 'horizontal' }); </script>
 
Thank you.
 
Reply 1 (1)

Olllie
Shopify Partner
121 11 23

Try this:

 

<div id="mobicred-widget"></div>
<script src="https://mobicred.co.za/widget.js"></script>
<script>
   MobicredWidget.init({
       amount: 1000,
       elementId: 'mobicred-widget',
       text: 'Pay with Mobicred',
       font: 'Arial',
       color: '#000000',
       layout: 'horizontal'
   });
</script>
Ollie | Founder & Developer of autoBlogger and autoSchema

autoBlogger: Seamlessly scheduled, fully automated, AI-powered, and SEO-optimised blogging with FAQs, table of contents and other features! Start your 14-day free trial today!


autoSchema: Fully automated and continuously updated Google structured data, including duplicate data removal. Simple to install – try it now!


Discover more at autoBlogger.bot!