简体   繁体   中英

Adding rel=“nofollow” to joomla menu item

I want to add the rel="nofollow" to the links on joomla menu item. This option is not available on administration backend. The robot add the attribute "nofollow" to the meta data of the page on that menu item not the actual link. Any help would be appreciated.

I'm using joomla 2.5

You have to override method that show your menu items. In website there is many articles about that.

You don't really need to add any parameters to your menu items, you can accomplish this by overriding your menu module. In the menu module, check for the value of the robots parameter then add the appropriate rel to the link it creates.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM