• Resolved slatbh

    (@slatbh)


    For reasons of SEO, would like to a rel=”nofollow” to the product link in the products section.

    So for example, we would like

    <a class="upcp-catalogue-link" target="_blank" href="https://www.londresparaprincipiantes.com/passeio-a-pe-pelos-principais-pontos-turisticos/" onclick="RecordView(8);"><div id="prod-cat-title-8" class="prod-cat-title upcp-detail-title">Londres Essencial</div>
    </a>

    to become

    <a class="upcp-catalogue-link" target="_blank" rel="nofollow" href="https://www.londresparaprincipiantes.com/passeio-a-pe-pelos-principais-pontos-turisticos/" onclick="RecordView(8);"><div id="prod-cat-title-8" class="prod-cat-title upcp-detail-title">Londres Essencial</div>
    </a>

    Note the example is for an internal link but we want to do this for the external links.

    Is there anyway to do this?

    If not, I strongly suggest it as this is suggested good practice for SEO

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Slat,

    There’s currently no option to do this. Thank you for the feature suggestion. If you wanted, you could do this manually by updating the plugin code. The links you mentioned are found in the Shortcodes.php file in the Functions folder. It’s important to note, though, that any changes you make to that file would be overwritten if you update the plugin.

    Thanks for the reply.
    We tried doing that, but since there are more than 2600 lines of code in the Shortcodes.php file, we would appreciate if you could help us by telling where approximately to insert the changes. Thank you very much.

    Thread Starter slatbh

    (@slatbh)

    I am happy to add the required text to the required shortcodes.php file, but as it is long and I am not a skilled developer/programer, could you help me out by identifying the function(s) and or line number(s) where it needs to be added. I remind you this is for an external link in the products sections.

    In case it is important, we have purchased your product. Please advise us if there is a more appropriate way to get support.

    Kind regards

    Steve and Eneida

    Hi There,

    Did you ever receive a reply and solution for this “nofollow” issue?
    Regards,

    Martyn.

    Thread Starter slatbh

    (@slatbh)

    Hi Martyn

    Unfortunately, we haven’t received one yet

    Steve

    Thread Starter slatbh

    (@slatbh)

    Hi Martyn

    An update, I wrote to the developer via email and they provided some information that has allowed me to add the ” rel=’nofollow’ “. They also advised me that it is on a list for future updates, but no idea when.

    The solution involves manually editing a file within the plugin (shortcodes.php currently 12 instances of ” <a class=’upcp-catalogue-link “) and adding rel=’nofollow’ to it. Obviously, backup before doing this and it is at your own risk… However, it worked for us.

    Until the developer includes this, this file will need to be edited each time the plugin is updated.

    Hope this helps

    Steve

    Thanks Steve,

    Would you be able to provide a line of code as example to show exactly where and how you placed it.
    Understand the 12 instances and where they are located. Just and example of what and where would be great.

    $ProductString .= “<a class=’upcp-catalogue-link’ ???

    Thanks very much.
    Regards,

    Martyn

    Thread Starter slatbh

    (@slatbh)

    Hi Martyn

    I’m not sure if this is the best solution, but the code below is what I did for the first instance (in my case line 830 but this could vary!). I added the nofollow in a similar way for the other instances. You should note the use of single versus double quote marks.

    $ProductString .= "<a class='upcp-catalogue-link rel='nofollow' " . ($Lightbox_Mode

    Good luck

    Steve

    Hi Steve,

    Thanks for that. EtoileWebDesign also got back to me as well and sent the example with nofollow placed at the end of the code. Example below, not entirely sure if it makes any difference or not. What ever works i guess to achieve nofollow!

    $ProductString .= “Item_ID . “);’ rel=’nofollow’>”;

    Thanks for everyones help.
    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add rel=”nofollow” to external product link’ is closed to new replies.