How to Create Automatic Internal Linking on Blogger

Also Read

How-to-Create-Automatic-Internal-Linking-on-Blogger
How to Create Automatic Internal Linking on Blogger


if you are a blogger and want your next post to be an automatic link in your post, you'll need to follow a few steps. Once you have done that, the second blog post you publish will automatically be linked to your blog post.

what is internal link?

An internal link is a link from one page to another page within an identical domain. They're basically text hyperlinks linking different pages to another page on your site. Of course, your website's navigator is an illustration of internal linking, but this is a discussion of links on the page, in the content.

why are internal links important?

Internal links are crucial because they can assist Google to understand and rank your site better. By providing Google-linked sites to browse with descriptive anchor text you'll be able to show Google what pages on your site are important and what they're all about. Internal links can be beneficial for user experience and increase engagement.

simple Steps to Create Automatic Internal Linking in Blogger Post
  • first, need to log in to your blogger account
  • After that, you have to click on the theme.
  • After that, it will show you have to click on Edit HTML
  • After click Edit HTML, you have to control + F on your keyboard, then you will have search tab in front of you, </ head>
(1)  When you type and search, </ head> then paste the following code on top of it

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script type="text/javascript">
//<![CDATA[
var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); function related_results_labels(json) { for (var i = 0; i < json.feed.entry.length; i++) { var entry = json.feed.entry[i]; relatedTitles[relatedTitlesNum] = entry.title.$t; for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') {relatedUrls[relatedTitlesNum] = entry.link[k].href; relatedTitlesNum++; break;}}}} function removeRelatedDuplicates() { var tmp = new Array(0); var tmp2 = new Array(0); for(var i = 0; i < relatedUrls.length; i++) { if(!contains(tmp, relatedUrls[i])) { tmp.length += 1; tmp[tmp.length - 1] = relatedUrls[i]; tmp2.length += 1; tmp2[tmp2.length - 1] = relatedTitles[i];}} relatedTitles = tmp2; relatedUrls = tmp;} function contains(a, e) { for(var j = 0; j < a.length; j++) if (a[j]==e) return true; return false;} function printRelatedLabels() { var r = Math.floor((relatedTitles.length - 1) * Math.random()); var i = 0; document.write('<ul>'); while (i < relatedTitles.length && i < 20) { document.write('<li><a href="' + relatedUrls[r] + '">' + relatedTitles[r] + '</a></li>'); if (r < relatedTitles.length - 1) { r++; } else { r = 0;} i++;} document.write('</ul>');}
//]]>
</script>
</b:if>{codeBox}

(2)  Now Press Ctrl+F To Find Word ” ]]></b:skin>” And Paste Code Above ]]></b:skin> Section

/*RelatedPost - Tech Gyan*/post-terkait{display:block;position:relative;background:#fff;padding:0;margin:15px auto 20px;width:100%}.post-terkait h4{background:linear-gradient(44deg, #f00c1f, #f3eb00, #ffffff);padding:5px 9px;font-size:13px;text-transform:uppercase;color:#fff;border-top-left-radius:21px;line-height:normal;border:0}.post-terkait h4:before{display:none}.post-terkait ul{margin:0;padding:0}.post-terkait ul li{list-style:none;padding:1px 0;line-height:1.5em}.post-terkait a{color:#07ACEC;font-size:17px}.post-terkait a:hover{color:#ff0000;text-decoration:underline}{codeBox}

(3)  Ctrl+F To Find "<data:post.body/>" Copy Below Code And Replace <data:post.body/>

Note Sometimes this code more than 1 stays  if you Find 3 times you mostly replace the second one

<div expr:id='&quot;post1&quot; + data:post.id'/>
<div class='post-terkait'>
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=3&quot;' type='text/javascript'/>
</b:if>
</b:loop>
</b:if>
<h4>Also Read</h4>
<script type='text/javascript'>
removeRelatedDuplicates();
printRelatedLabels();
</script>
</div>
<div expr:id='&quot;post2&quot; + data:post.id' class='artbody' itemprop='articleBody description'><data:post.body/></div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;post1<data:post.id/>&quot;);
var obj1=document.getElementById(&quot;post2<data:post.id/>&quot;);
var s=obj1.innerHTML;
var t=s.substr(0,s.length/3);
var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);}</script>{codeBox}


If You Get Any Problem or Error Then Comment Below



How to Create Automatic Internal Linking on Blogger

how to create automatic internal linking on the blogger page

internal linking on blogger

create automatic internal linking on blogger




don't share any link and html code

Post a Comment (0)
Previous Post Next Post