Hi, bestfriend. . Today, I will discuss about How to Automatically Remove Active Links in Blog or Website Comments Columns.
Table of contents
- Why should the active link in the comments column be removed?
- How to Automatically Remove Active Links in Blog or Website Comments Columns
- Is Active Link Removal Script Installed Correctly?
Why should the active link in the comments column be removed?
This is an explanation of why active links in the comments column must be deleted or removed.
Some active links may not have a bad impact on our blog or SEO, but there are lots of active links that have a bad impact on blogs and SEO, for example active links that are spam will make our blog or website difficult for search engines to crawl because of the large number of broken links or link errors. . Therefore, many bloggers install automatic scripts to remove active links in their blog comments column.
How to Automatically Remove Active Links in Blog or Website Comments Columns
Immediately, now I will share How to Automatically Remove Active Links in the Blog or Website Comment Column. Following are the steps for installing a script to remove active links in comments, including:
- Login to Blogger
- Install Code
- Click "Save"
First, How to Automatically Remove Active Links in the Blog or Website Comment Column, is to log in to Blogger using your Gmail account.
Second, How to Automatically Remove Active Links in the Blog or Website Comments Column, is to post a code to remove active links in the blog comments column.
Select the "Themes" menu on the left side. Then, Click "Edit HTML". Next, Place the Script Code below just above the </body> code.
- <script type='text/javascript'>
- //<![CDATA[
- function blockLinks(parentID, children) {
- var parent = document.getElementById(parentID),
- content = parent.getElementsByTagName(children);
- for (var i = 0; i < content.length; i++) {
- if (content[i].innerHTML.indexOf('</a>') !== -1) {
- content[i].innerHTML = "Komentar Kamu Mengandung <mark>Link Aktif</mark> Dilarang Di Sini!"; }
- }
- }
- blockLinks('comments', 'p');
- //]]>
- </script>
Is Active Link Removal Script Installed Correctly?
To test whether the script to delete the active link has been installed correctly, please embed the active link or anchor text in your own comment column.
Thus the explanation of How to Automatically Remove Active Links in the Blog or Website Comment Column.
See also:
- How To Install Google Adsense Ads In The Middle Of Articles Or Posts
- How To Create And Install A Sitemap Or A Table Of Contents For A Blog Based On The Latest Posts
- How To Install Google Adsense Ads At The Beginning, In The Middle And At The End Of Articles Or Posts
May be useful. .
No comments:
Post a Comment