It’s very easy to add Common Ninja’s HTML code to Magento.
1. First, you need to copy the widget’s HTML code. There are several methods to do so.
Method 1: From the Widget’s Editor
Once you’ve saved your widget, at the top right corner, to the left of the “preview” button, you will see the “Add to Website” button, represented by the “</>” symbol. Click on it.
Then, in the window that opens up, you will see the code. Simply click on the copy button next to it.
Method 2: From the Dashboard
From your user dashboard, find the widget you want to add to your website from within the “Widgets” tab. Next to it, and under the “Actions” heading (on the right side), you will see a purple button with “Add to Site” on it. Click on it.
A window will pop up, and here, simply click on the copy button next to the code to copy it.
2. Next, go to your Magento dashboard, and from the Admin Panel, click on “Content”. Then, select “Elements”, and then “Pages”. Find the page you’d like to edit and open it in “Edit mode”.
3. Scroll down and expand the “Content” section. In the “Page Builder” panel, expand “Elements” and drag the “HTML Code” placeholder to where you’d like the app to be on your page.
4. Next, hover over the container, and click on the “Settings” option (gear icon). Paste the code you’ve copied before and click save. That’s it. You should see Common Ninja’s app on your page.