I just want to display each page's title as its title, no "| site title" or other info. I have set "other pages title" as "Page title | Custom(blew)", and leave the "Custom" a blank. But all other pages titles are still showed as "Page title | Site title".

How can I have just a simple page title?

Comments

Deepika.chavan’s picture

Hi,
Add a condition in template.php (line no-278) file then your code will look like:

 case 'ptitle_custom':
          if (theme_get_setting('other_page_title_display_custom') !== '') {
            $vars['head_title'] = drupal_set_title($page_title . $title_separator .            t(theme_get_setting('other_page_title_display_custom')));
          }
          else {
	    $vars['head_title'] = drupal_set_title($page_title); 
	  }
          break;

Note :

else {
	    $vars['head_title'] = drupal_set_title($page_title); 
	  } 

is the code to be added in template.php file.

Please select "Page title | Custom(blew)" option in "other pages title" setting, and leave the "Custom" textfield blank.
HTH!!

Rgrds,

Deepika Chavan.

dtvnews’s picture

...or simply use the Page Title module.

florian’s picture

Category: Bug report » Support request
Issue summary: View changes
florian’s picture

Status: Active » Closed (fixed)

This was fixed in versions 7.x-4.x and 6.x-4.x