How to Install the widget on Magento
This document covers the installation steps required to integrate Social9 with your Magento website
- Get The Code Snippet From Social9 Console
- Add Script In Magento Control Panel
- Cache Management
- Additional Setup For Inline(Horizontal) Widgets
Copy the one-time installation code snippet under the magento installation guide section of the Social9 Console. This should look similar to,
<script id="s9-sdk" async defer content="<REPLACE WITH YOUR USER ID>" src="//cdn.social9.com/js/socialshare.min.js" ></script>
Login to your Magento Marketplace Account.
Under your dashboard, select the
Content > Design > Configuration section from your left navigation bar.
Select the website that you'd like to configure and click on
Edit under the Action table header.
HTML Head under Other Settings.
Scroll down to
Scripts and Style Sheets field and paste the code snippet copied from your Social9 console covered in Step 1.
Save Configuration in the top right to keep the changes.
After saving, you may see a message that asks you to visit
Cache Managementto refresh cache types. Click on the link displayed to visit the
Flush Magento Cache following which you should see a confirmation message that the cache has been flushed.
If you'd like to configure an inline widget in your site (i.e. when the widget is placed side-by-side with your page content with a horizontal view), just add this additional code snippet where ever you want the widget to be rendered.
You can create or configure inline widgets under the social9 configurations section and it will automatically be reflected on your website.
For inline widgets, you need to specify the location on your site where the widget should be rendered.
By default, the social9 inline widgets are rendered under the element with class name
s9-widget-wrapperalthough you can change the name in the console. This can be done by changing the
Parent Container Selectorfield under the
Rulessection of the widget editor.
Paste the following snippet in your site where the inline widget should render.