Editing HTML Title Tag in Drupal For Views

If you can’t seem to do it any other way, as there doesn’t seem to be a fast way to do it with any specific modules, you may want to edit your header.php file in your template. I replaced the original header tag information with something that looked more like this:

<title><?php
 if ($_SERVER['REQUEST_URI']==”/view1name”)
   print “This is my title”;
 elseif ($_SERVER['REQUEST_URI']==”/view2name”)
   print “This is my title for this one”;
 elseif ($_SERVER['REQUEST_URI']==”/view3name”)
   print “This is my title for the third view”;
 else
 print $head_title;
  ?></title>


Leave a Comment

Spam protection by WP Captcha-Free