In this post i'll show you that however will we tend to open all External links into new tab. this may be done by adding straightforward jQuery code into templet. opening external links into new tab facilitate to scale back your blog bounce rate and additionally you'll not lose your valuable visitors. currently you've got understood the advantages of opening external links into new tab therefore let's begin the tutorial.
2. PressCtrl +F and find the below </head>
3. Now paste the below code above/before it.
4.Save the template.
5. Done!
Open External Links Into New Tab
1. Go to your blogger dashboard >> Template >> Edit HTML2. Press
3. Now paste the below code above/before it.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script type="text/javascript"> $undefineddocument).readyundefinedfunction undefined) { $undefined"a[href*='http://']:notundefined[href*='"+location.hostname+"']),[href*='https://']:notundefined[href*='"+location.hostname+"'])").attrundefined"target","_blank").attrundefined"title","Opens new window").addClassundefined"external"); }); </script>Note: Remove red line from code if you have already any jQuery.js file in your template.
4.Save the template.
5. Done!
Nice stuff indeed! You have provided very good information in details.
ReplyDeleteRegards
ProblogBooster.com