In the tips section of our help-desk, we aim to source and inform you about useful services and widgets that you can add to your site for free!
The nature of these services usually means that there's no software to download or host anywhere – it's all provided by the services themselves. Instead, they will provide you with a snippet of code that you can add to your site.
Sometimes, it can be tricky to work out where to put the code, depending on the type of service you're trying to add to your site, so the following examples should help you in deciding how to place the code.
Scenario 1:
The service provides your site with a toolbar that you wish to display on every page.
Question:
“The provider of **this product** says that I must put the code in the header of my site. Where can I do this in the Admin Centre?”
Answer:
In the Ads & Custom HTML section. Any code that you place in this section will appear on every page of the site. The main boxes on this page are the Head data (which will place code between the head tags of your site), Body data (which will place the code just after the opening body tag) and the Footer data (which will place the code just before the closing body tag).
Scenario 2:
The service provides your site with a widget which can be placed on a page on your site.
Question:
“I have a snippet of HTML that will let me embed the widget from **this product**, but where do I put the code?”
Answer:
In a Custom HTML widget in your Layout Manager. Choose or create a page in your Layout Manager where you would like to place the widget and drag a Custom HTML widget into the Layout Manager. Double click on the Custom HTML widget that you have just placed and paste the code into the 'source code' view of the widget. Save it, and voila, the widget will now appear on your website.
Scenario 3:
The service doesn't provide any code for you to embed, such as a shopping cart service.
Question:
“How do I display **this product** on my site if they don't provide any sort of code to embed it with?”
Answer:
Load the service's page in an iFrame widget in the Layout Manager. Using an iFrame, you can display the contents of any site within the layout of your own site. Bear in mind that while iFrames work most of the time, some services may prevent you from embedding their site in an iFrame. Unfortunately in this case, there's nothing that can be done. However, when in doubt – experiment!
Comments
3 comments
does not work
I would like to embed YouTube videos, using the code provided by YouTube into a topic on a forum in my SocialGo site. Any suggestions on how to make this happen?
Click share below vidoe then select embed. Check and see if they have different sizes of embed, then. place the size you want into custom html obx. Place custom html into pages story board. You may want to add before the script <center> and <center/> after script. You also it do right or left. Check out a website for basic html codes for more. You also hit the source button and resiz the video to fit your web page or blog. You may want to experiment with it. My suggestion is to try to keep embeds at stand only until get the feel for how to add them to other html code.
Article is closed for comments.