19 December 2014

,

Make All External Links Open in New Tab in Blogger Blog

How to Make all Your External Links Automatically Open in New Tab in Blogger Blog

External Links in Blogger
As Many Bloggers Want to Make External Links Open in New tab and If your External Links are not Opening in new tab then make it right now it,s Necessary Because if any of your Visitor Click on External Link They will open in same Tab and your Blog visitors will be Redirect to your External link So Its Necessary to make all your External Links Open in New and also External Links Effect on SEO That,s Mean your Blog is in Danger So Follow Below Step and Do it now

Also Read:

Make External Link Open in New tab in Blogger

(1) Go to Blogger.com and Then Click on Drop down arrow and Select Template

(2) Then Click on Edit HTML

(3) then Press Ctrl+f  and Find This Tag </head> and then Paste The Below Code Just Above This Tag </head> Copy all Code Correctly

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>
    <script type='text/javascript'>
    $(document).ready(function() {
      $("a[href^='http://']").each(
        function(){
         if(this.href.indexOf(location.hostname) == -1) {
            $(this).attr('target', '_blank');
          }
        }
      );
    $("a[href^='https://']").each(
    function(){
    if(this.href.indexOf(location.hostname) == -1) {
    $(this).attr('target', '_blank');
    }
    }
    );
    });
    </script>
(4) Then click on Save

Congrats you are Done Now Open your Blog And then Simply Click on Any External Link and You will see your link will Open in new tab

If you have Any Question you can ask in Comments and also Give your Thoughts in Comments and Also Please Share This on Social Media Thanks.



0 comments:

Post a Comment

Give your Thoughts about this Post in Comments.

Top Ad 728x90