How to hide Edit | View tabs?

后端 未结 11 987
轮回少年
轮回少年 2021-02-01 04:43

Can I hide the

Edit | View

tabs on top of each node ?

I\'ve searched for this option in theme settings (both global and sta

11条回答
  •  别那么骄傲
    2021-02-01 05:23

    here is a very easy solution for you. (Drupal 7)

    • Open your page.tpl.php in your current template and search for the $tabs variable.

    • Remove the render code if you want to hide it completely.

    • If you want to display it only to administrators use this code

      
      

      The above code checks if the user is administrator. If it is it will render the tabs. If not it wont render them.

提交回复
热议问题