test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • portalion Friend
    #191414

    Hi,

    I would like to know what file to edit to make links (Home and others categories) nofollow.
    Where to add “nofollow” atribute?

    May I receive support with this?

    Thank you
    Best regards

    pavit Moderator
    #509121

    Hi

    From backend you can use the Metadata Options >> Robots >> and set the no follow for your categories or article or menu items

    portalion Friend
    #509195

    Hi pavit,

    Thanks for your quick response.
    I don’t want to prevent all categories and items from indexing in search engines.
    I want to have rel=”nofollow” links in magazine menu like in this example:

    [PHP]<a id=”menu490″ class=”mega first home ” href=”http://www.example.com/” rel=”nofollow”>

    <span class=”menu-title”>

    Home

    </span>

    </a>[/PHP]

    (This helps routing Pagerank for specific anchors)

    Adding nofollow in Menu manager from backend results in nofollowing all category and this is not what I am asking for.

    I’d like to know what files to edit to achieve this gool?

    Looking forward to hearing from you.

    pavit Moderator
    #509218

    Hi

    understood what you mean and i have doubt that this could be organized as you wish for a joomla site with dynamic content generation

    Anyway you can try to manage it looking in these folder pluginssystemjat3jat3base-themesdefaultblocks

    1) mainnav.php
    2) head.php

    Saguaros Moderator
    #509257

    Hi portalion and Punto,

    Since there is no option to configure this, you need to change code in this file: pluginssystemjat3jat3coremenubase.class.php

    Look for code that creates <a> tag and add like this: <a rel=”nofollow” …

    Then clean JAT3 cache.

    P/s: you can download and unzip below attached file , copy it to above folder (backup the old file first 🙂 )

    Kind regards


    1. base.class_.zip
    portalion Friend
    #509367

    Thank you again Saguaros 🙂

    That works!
    On my website, in file pluginssystemjat3jat3coremenubase.class.php
    I added nofollow in line 541:

    [PHP] $data = ‘<a rel=”nofollow” href=”‘ . $tmp->url . ‘” ‘ . $active . ‘ ‘ . $id . ‘ ‘ . $title . ‘>’ . $txt . ‘</a>’;[/PHP]

    as a result all links in magazine menu have nofollow atribute.

    Best regards

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 3 voices, and was last updated by  portalion 11 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum