how to remove admin`s blog in footer of teasers i can remove the add comment link with this code :

function  mytheme_node_view_alter(&$build){
if ($build['#view_mode'] == 'teaser')
    // remove "add comment" link from node teaser mode display

    // and if logged out this will cause another list item to appear, so let's get rid of that

but i cant remove admins blog what can i do ?!

2 Answers 2


Try to use something like the below code to hide admin's blog from teaser's view in your theme's template.php, hope it will work for you:

function THEME_preprocess_node(&$variables) {
      if ($variables['view_mode'] == 'teaser') {
        if ($variables['type'] == 'blog' && (arg(0) != 'blog' || arg(1) != $variables['uid'])) {
  • this is work tnx for your tip mrs astha chauhan ;)
    – hgp
    Jun 18, 2014 at 6:55

Check out the module Tab Tamer

Tab Tamer is an administration utility that provides easy re-ordering, hiding, and deactivation of tabs and subtabs. You can also rename tab labels.

  • tnx for your tip mr pontus but i can`t find any thing about node links in this module!
    – hgp
    Jun 18, 2014 at 5:01
  • @hgp ahh, I see now that it was a link and not a tab you were trying to change :) Jun 18, 2014 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.