There are types of taxonomy materials, a text field has been added to the header, which appears in all nodes.

The question how to find out the nid of a certain node and remove the text field output (I need to prevent the text field from displaying in some nodes)

    2 answers 2

    In node.tpl.php there is an object $ node. Description of all variables visible in one or another template in the "phpdoc" in the file header. To get an id node, just write

    $current_nid = $node->nid; 

    $ current_nid will be assigned the id of the active node.

      The easiest way to find out nid is to open the node page and see its source code, the body tag will have a class with ID (for example page-node-288), and you can remove it in the node template.