{"id":512,"date":"2016-07-05T21:27:54","date_gmt":"2016-07-05T13:27:54","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=512"},"modified":"2018-09-04T23:47:26","modified_gmt":"2018-09-04T15:47:26","slug":"how-i-make-infolinks_on-and-infolinks_off-work-on-my-website","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/how-i-make-infolinks_on-and-infolinks_off-work-on-my-website\/","title":{"rendered":"How I make INFOLINKS_ON and INFOLINKS_OFF work on my website"},"content":{"rendered":"<p>Many bloggers use <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join Infolinks\" target=\"_blank\">Infolinks<\/a> as a monetization tool for their websites. Since it is easy to implement, I had <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join Infolinks\" target=\"_blank\">Infolinks<\/a> enabled on my website as well. <\/p>\n<p>Out of the box, the javascript codes from <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join infolinks\" target=\"_blank\">Infolinks<\/a> scan an entire webpage for opportunities to create links to advertisers' website. <\/p>\n<p>However, there can be areas of your website that you do not want <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join Infolinks\" target=\"_blank\">Infolinks<\/a> to convert into links. Examples could be the paragraph that describes your page or the paragraph that talks about a product that you are selling from your website.<\/p>\n<p>This post describes what I did on my website to control Infolinks inText ads generation. <\/p>\n<h2>&lt;!--INFOLINKS_OFF--&gt; and &lt;!--INFOLINKS_ON--&gt; does not work on my website<\/h2>\n<p>Google brought me to <a href=\"http:\/\/www.infolinks.com\/support\/products\/intext\/how-do-i-restrict-intext-ads-from-certain-areas\/\" title=\"How do I restrict InText ads from certain areas? - infolinks\" target=\"_blank\">Infolinks' page on restricting inText ads<\/a>. That page suggests that I include the Infolinks off tag: <\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!--INFOLINKS_OFF--&gt; \r\n<\/pre>\n<p>to turn off the infolinks script and the Infolinks on tag:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!--INFOLINKS_ON--&gt;\r\n<\/pre>\n<p>to turn the Infolinks script back on again. <\/p>\n<p>This suggests that Infolinks script scan webpages from top to bottom; when it encounters the off tag (INFOLINKS_OFF), it will not place any inText ads until it encounters the on tag (INFOLINKS_ON) again.  <\/p>\n<p>As an example, suppose I want to prevent Infolinks from creating inText ads on the description of my site, my html code for my description section should be as follows:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!--INFOLINKS_OFF--&gt;\r\n&lt;div id=&quot;aboutTechcoilSection&quot;&gt;\r\n\t&lt;h2&gt;About Techcoil&lt;\/h2&gt;\r\n\t&lt;p&gt;\r\n\tTechnologies coil to form a greater whole, thereby facilitating the exchange of information between people. \r\n\tThat was how Techcoil was named. \r\n        &lt;\/p&gt;\r\n\t&lt;p&gt;\r\n\tLaunched in 2010, Techcoil was designated to serve as a memory lane, as well as a testing ground for web related technologies.\r\n\t&lt;\/p&gt;\r\n\t&lt;p&gt;\r\n\tWe have articles to some technical problems, book recommendations for reading pleasure and self-improvement and some tools to help make some work a little bit faster.\r\n\t&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;!--INFOLINKS_ON--&gt;\r\n<\/pre>\n<p><strong>To my dismay, this does not work for me; inText ads were still appearing in my \"About Techcoil\" section.<\/strong><\/p>\n<h2>The HTML codes that helped me control where Infolinks place inText ads for my website<\/h2>\n<p>My Aptana IDE highlighted to me that <\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!--INFOLINKS_OFF--&gt; \r\n<\/pre>\n<p>and <\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!--INFOLINKS_ON--&gt;\r\n<\/pre>\n<p>are not proper HTML comments. Hence, I decided to modify the tags by adding an extra spacing between the dashes that surround \"INFOLINKS_OFF\" and \"INFOLINKS_ON\" string literal:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!-- INFOLINKS_OFF --&gt;\r\n&lt;!-- INFOLINKS_ON --&gt;\r\n<\/pre>\n<p>making the resultant HTML codes to turn off inText ads generation at my \"About Techcoil\" section looks like the following:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!-- INFOLINKS_OFF --&gt;\r\n&lt;div id=&quot;aboutTechcoilSection&quot;&gt;\r\n\t&lt;h2&gt;About Techcoil&lt;\/h2&gt;\r\n\t&lt;p&gt;\r\n\tTechnologies coil to form a greater whole, thereby facilitating the exchange of information between people. \r\n\tThat was how Techcoil was named. \r\n        &lt;\/p&gt;\r\n\t&lt;p&gt;\r\n\tLaunched in 2010, Techcoil was designated to serve as a memory lane, as well as a testing ground for web related technologies.\r\n\t&lt;\/p&gt;\r\n\t&lt;p&gt;\r\n\tWe have articles to some technical problems, book recommendations for reading pleasure and self-improvement and some tools to help make some work a little bit faster.\r\n\t&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;!-- INFOLINKS_ON --&gt;\r\n<\/pre>\n<p>Sure enough, once I deployed the code changes, I never saw inText ads appearing in my \"About Techcoil\" section again.<\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-8g\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-8g&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-8g&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F512&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>Many bloggers use <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join Infolinks\" target=\"_blank\">Infolinks<\/a> as a monetization tool for their websites. Since it is easy to implement, I had <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join Infolinks\" target=\"_blank\">Infolinks<\/a> enabled on my website as well. <\/p>\n<p>Out of the box, the javascript codes from <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join infolinks\" target=\"_blank\">Infolinks<\/a> scan an entire webpage for opportunities to create links to advertisers&#8217; website. <\/p>\n<p>However, there can be areas of your website that you do not want <a href=\"http:\/\/www.infolinks.com\/join-us?aid=2505468\" title=\"Link to join Infolinks\" target=\"_blank\">Infolinks<\/a> to convert into links. Examples could be the paragraph that describes your page or the paragraph that talks about a product that you are selling from your website.<\/p>\n<p>This post describes what I did on my website to control Infolinks inText ads generation. <\/p>\n","protected":false},"author":1,"featured_media":1259,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[306,304,305,307],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Infolinks-Logo.png","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-8g","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/512"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1259"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}