Open link in new tab is one of the most used feature by all. This template makes it still more easier. This template has included a jquerry code. By default the template will open links other than the blog's URL links in new tab even though you did not select "open link in new tab"
You can choose what all URLs' to exclude. It needs template Editing:-
Go to HTML Template Editor.
You can choose what all URLs' to exclude. It needs template Editing:-
Go to HTML Template Editor.
- Press Ctrl + F and find </body>
- Above it, you could see a code like this :-jQuery(function($){
$('a[href^="http://"]')
.not('[href*="<data:blog.url/>"]')
.not('[href*="<data:blog.homepageUrl/>"]')
.attr('target','_blank');
}); - In the above code, to prevent a URL from opening in new tab, for example, howtoblog.krishnainfotron.com, Just add, .not('[href*="howtoblog.krishnainfotron.com"]')to the next line of
.not('[href*="<data:blog.homepageUrl/>"]')
- Save Template.
Post a Comment