-
AuthorPosts
-
portalion Friend
portalion
- Join date:
- October 2009
- Posts:
- 63
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
October 15, 2013 at 9:09 pm #191414Hi,
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 regardspavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 16, 2013 at 5:12 am #509121Hi
From backend you can use the Metadata Options >> Robots >> and set the no follow for your categories or article or menu items
portalion Friendportalion
- Join date:
- October 2009
- Posts:
- 63
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
October 16, 2013 at 4:33 pm #509195Hi 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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 16, 2013 at 7:32 pm #509218Hi
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.phpSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 17, 2013 at 3:36 am #509257Hi 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 user says Thank You to Saguaros for this useful post
portalion Friendportalion
- Join date:
- October 2009
- Posts:
- 63
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
October 17, 2013 at 5:28 pm #509367Thank 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
-
AuthorPosts
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