Skip to main content
4 events
when toggle format what by license comment
Feb 4, 2015 at 17:07 comment added Shubham You can do it like this You can use below code for adding no-follow and no-index meta for the node. Put this code in your themes template.php file. function MYTHEME_html_head_alter(&$head_elements) { if (arg(0) == 'node' && arg(1) == 'YOUR NODE NID' && !arg(2)) { $head_elements['MYMODULE_meta_robots'] = array( '#tag' => 'meta', '#type' => 'html_tag', '#attributes' => array( 'name' => 'robots', 'content' => 'noindex' ) ); } }
Feb 4, 2015 at 16:52 comment added Shubham On the view page of the node or the link you want to add it?
Feb 4, 2015 at 11:04 comment added hasse88 Thank you for your answer.. HOOK install was the solution needed. Do you know if it is possible to add a meta content="nofollow" tag to the node i have just created..?
Feb 3, 2015 at 17:12 history answered Shubham CC BY-SA 3.0