How can I prevent Convert, Insert, or Optimize from working on certain parts of my site?

Sometimes it’s useful to configure the VigLink JavaScript Library differently for a certain page on your site, or even for just part of a page. For example, you might have VigLink Insert enabled on your site, but have an area where links should never be inserted. VigLink behavior can be configured by adding certain labels (called CSS “classes”) to your site’s HTML.

CLASSES

norewrite

When VigLink Convert is enabled (on by default), norewrite can be used to ensure links are never converted on specific parts of a page.

nolinks

When VigLink Insert is enabled in your settings, nolinks can be used to ensure links are never added to specific parts of a page.

nooptimize

If Link Optimization is enabled, use nooptimize to ensure certain links are never optimized. To ensure that VigLink Convert and Insert are both disabled, please use both nolinks and norewrite in the class.

EXAMPLES

To prevent a single link from being monetized:

<a href="http://example.com" class="norewrite">VigLink ignores this</a>

To prevent multiple links from being monetized:

 <div class="norewrite">
None of these links will be monetized by VigLink. Not
<a href="http://example.com/1">this one</a>, or
even <a href="http://example.com/2">that one</a>.</div>

To prevent link insertion in part of the page:

 <div class="nolinks">
My Nikon D7000 is amazing! VigLink will not insert a link on the text Nikon D7000.</div>

These classes can be used anywhere in your HTML and affect everything below. That means an entire page can be configured by adding one to the tag:

</header>
<body class="nolinks">
<div>Everything within the body will have no links inserted by VigLink Insert.
<p>Even child elements won't have anything inserted on product mentions like Nikon D7000</p>
</div>
</body>

If your HTML already has another class where you’d like to use one of ours, just add a space between them. They’ll both work as expected:

<div class="myclass nolinks">
My Nikon D7000 is amazing! VigLink will not insert a link on the text Nikon D7000.</div>
Have more questions? Submit a request

Comments

Powered by Zendesk