"How do I install the in-article video widget?"
Implementing MANTIS’ in-article video widget into your website is a relatively simple process — we only require that your website already has MANTIS’ content recommendation widget or display advertising scripts installed:
Option 1: With Code
If you are comfortable making changes to your website code, all you have to do is add the following HTML where you would want the video to show. As long as you also have either our display or recommendation scripts installed, it should work.
Option 2: Without Code
The simpler approach, would be to login to your Administrative Panel and update the “Autoplay Video In-Article” setting within Settings > Video.
This setting requires you have knowledge of how CSS and HTML work through selectors.
Here is an example of a way you could implement it on a typical website...
Go to your website and figure out where you would like the videos to appear. In this example, we want to show the video after the second paragraph so we select the last word in the text, Right Click then click Inspect, as shown below:
After inspecting a new dialog should appear which outlines where that paragraph is relative to all the HTML in the document. You should see something similar to this:
The goal here is to come up with a CSS selector that would match enough of your articles based on common HTML. In this case, we are assuming that most of our articles are at least two paragraphs long.
To ensure we don’t insert it after any paragraph on the page, we scope it to the nearest parent selector. Based on that, here is what we would input in the admin:
Congratulations! You should now see video ads on your website.
While you're at it... let's go ahead and implement our other revenue generating platforms to maximize your earnings with us: