Skip to content

Wordpress Setup

Wordpress installation instructions

  1. Navigate to your Wordpress admin dashboard. The dashboard can usually be found at https://example.com/wp-admin/ where example.com must be replaced with your own domain.
  2. In the left sidebar, hover over Appearance and click on Theme File Editor.
  3. In the right sidebar, click on Theme Header (header.php).

Then, add the following line inside the <head> tag, just before the </head> tag closes.

<head>
<?php wp_head(); ?>
<!-- Add the following line just before the closing of the head tag. -->
<script data-domain="example.com" defer src="https://cdn.mentionads.com/v1/script.min.js"></script>
</head>

Will adding the Mention Ads script slow down my website? No. The defer attribute guarantees that not only the script is not downloaded before the page finished loading, but also that it won’t execute until the page is fully loaded.

Test your installation

You can test your installation by adding the URL parameter to a page from your website, i.e. ?mentionads=debug. Open DevTools in Chrome and you should see a success message being logged. If you are having trouble confirming that your installation was successful, please reach out to [email protected].