Hi,

By default Dupal put your page name and site name in the title separating them with a "|"

So the title is something like -- "My Page Name | domain.com"

I ONLY want the page name. So I removed the domain.com

But I get -- "| My Page Name"

How do I get rid of the "|"

Thanks,

Ed

Comments

sgtaw’s picture

Ed Aw
~*
Fruit Vegetable Vitamin - A community of health conscious people.

jasono’s picture

Yeah, you need to edit your theme engine. If you're using XTemplate, then open up xtemplate.engine and scroll to the xtemplate_page function in there. You should see a key being set for the title:

"head_title" => (drupal_get_title() ? drupal_get_title() ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", ""))

You can then edit this to remove the " | ", i.e:

"head_title" => (drupal_get_title() ? drupal_get_title() : variable_get("site_name", "drupal"))
boris mann’s picture

Or for phptemplate-based themes, edit page.tpl.php and....delete the "|".

jeshintha001’s picture

On your own or as support, with or without programming or technical knowledge, the benefits of building your website with Drupal PHP are available to you.

****************************************

jeshintha001

Christian Drug Rehab