Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: No Follow Links

  1. #11
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: No Follow Links

    Try the attached Ray.
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  2. #12
    Join Date
    Jul 2015
    Location
    Currently New York State
    Posts
    776

    Default Re: No Follow Links

    Egg,

    That is a work around that could be used. However, with this method of using a place holder, it does not lend itself to having a link in a block of text.

    I still would like Xara to see if they could address this. It does seem that it should be easy to implement, especially when you see how they have implemented the target= function.

    Thanks for your ideas on this.

    Ray

  3. #13
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: No Follow Links

    Totally agree Ray, just a workaround at present.

    Attached is an example of the link embedded in a block of text. Not ideal I know
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #14
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: No Follow Links

    An example of workaround for a button would be to place the link address to the image alt text and a # to the link address as well as a name htlmclass=no*follow to the button. Then add this code to the page body
    Code:
    <script>
    var n=document.getElementsByClassName("no*follow");
    for (var i=0;i<n.length;i++){
      var t=n[i],p=t.parentNode;
      if (t.tagName=="IMG"){
        if (p.tagName=="A"){
          if (p.getAttribute("href")=="#"){
              p.rel="nofollow";
              p.href=t.alt;
          }
        }
      }
    }
    </script>
    Before the code is execued a link to itself is seen without the rel="nofollow" attribute and after the code is executed the rel="nofollow" attribute is set and the link address is changed to the alt attribute of the image.

    Would attach an example file if I could.

  5. #15
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,826

    Default Re: No Follow Links

    Quote Originally Posted by siran View Post
    An example of workaround for a button would be to place the link address to the image alt text and a # to the link address as well as a name htlmclass=no*follow to the button. Then add this code to the page body
    Code:
    <script>
    var n=document.getElementsByClassName("no*follow");
    for (var i=0;i<n.length;i++){
      var t=n[i],p=t.parentNode;
      if (t.tagName=="IMG"){
        if (p.tagName=="A"){
          if (p.getAttribute("href")=="#"){
              p.rel="nofollow";
              p.href=t.alt;
          }
        }
      }
    }
    </script>
    Before the code is execued a link to itself is seen without the rel="nofollow" attribute and after the code is executed the rel="nofollow" attribute is set and the link address is changed to the alt attribute of the image.

    Would attach an example file if I could.
    siran, the problem is Google trawling the page skips the JavaScript and sees all the links without nofollow.
    I don't think Google uses headerless browsers and then examining the loaded DOM.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #16
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: No Follow Links

    Acorn, one way or the other. Google should never be able to follow the link.
    Before the script is executed the link is to #
    After the script is executed the link has a rel="nofollow" attribute.
    Maybe an example explains what I am talking about (and I can attach from this computer) .
    If you export to file you will see <a href="#" onclick="return(xr_nn());"> in it.
    This will be modified to <a href="http://google.com/" onclick="return(xr_nn());" rel="nofollow"> by the script.
    None of these should allow google to follow the link.
    My first attempt was to dynamically create an <a> element, simulate a click and immediately remove it (which also worked), but this method seemed to be more straight forward to me.
    Attached Files Attached Files

  7. #17
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,826

    Default Re: No Follow Links

    Quote Originally Posted by siran View Post
    Acorn, one way or the other. Google should never be able to follow the link.
    Before the script is executed the link is to #
    After the script is executed the link has a rel="nofollow" attribute.
    Maybe an example explains what I am talking about (and I can attach from this computer) .
    If you export to file you will see <a href="#" onclick="return(xr_nn());"> in it.
    This will be modified to <a href="http://google.com/" onclick="return(xr_nn());" rel="nofollow"> by the script.
    None of these should allow google to follow the link.
    My first attempt was to dynamically create an <a> element, simulate a click and immediately remove it (which also worked), but this method seemed to be more straight forward to me.
    siran, I get it!

    I was playing with a link like javascript:void(jQuery.param.querystring('http://duckduckgo.com', 'rel="no follow"')); but unsuccessfully.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  8. #18
    Join Date
    Jul 2015
    Location
    Currently New York State
    Posts
    776

    Default Re: No Follow Links

    I wanted to bring this back up that we could really use a "no follow link" option to the software. I still believe this would be very easy for Xara to add to the software. This is something I have found that can be easily done in other software, Xara should not be limited to only follow link options.

    Google still frowns on certain follow links if they are not "no follow"

    Ray

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •