Follow

Using the Script Control in the Website Editor

Adding a widget to a site is easy, you just need to add the "Script" control to your site in the website editor.

Here is a local weather widget:

<a class="weatherwidget-io" href="https://forecast7.com/en/38d25n122d04/fairfield/?unit=us" data-label_1="FAIRFIELD" data-label_2="WEATHER" data-theme="original" >FAIRFIELD WEATHER</a>
<script>
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');
</script>

 

To add this, I would select the page I want to edit:

mceclip0.png

Select Add content in the area I want to add the widget:

mceclip1.png

Select the Script Control:

mceclip2.png

 

Add the script to control with a label so you can see if in the editor:

mceclip3.png

 

Save and preview your page:

mceclip4.png

 

Publish your revision and the widget is on your site!

mceclip5.png

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.