Sorry.. I meant to post .. replace it with below:
Main Topics
Browse All TopicsI've only recently started using Drupal and I'm loving it! I wish I has discoverd Drupal years ago, anyway better late than never...
A simple question...
I need to make some changes to the way Drupal displays stuff, like the title of a page. If I use the code <?php print $head_title; ?> I get the site 'slogan' which I have embedded some markup in mine and it looks horrible as a page title.
I have downloaded a patch from drupal.org called 'drupal-6.x-strip-slogan.p
Could someone please tell me how I apply this patch? Do I need to copy this file to a specific folder or copy the contents over existing code?
Many thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You could manually apply the code, as rattie mentions above, but I've attached some links if you're interested in how to apply patches. Typically, it's safer to apply patches automatically, hence the patch file, as manually updating the code could lead to introduction of new issues.
Patch files are actually code differences. They aren't necessarily drupal, or any application, specific. There are patch apps that will merge code. The following two drupal support threads should let you know where to get the patch software (for windows or *nix) as well as how to run them. There are also a number of good issues noted in the threads so you can see how different people stumbled along the way, but regained their path.
Drupal's official patch documentation:
http://drupal.org/patch/ap
Video of patching a file:
http://drupal.org/node/132
helpful threads:
http://drupal.org/node/142
http://drupal.org/node/119
Let us know if you have any additional questions, or any issues!
Business Accounts
Answer for Membership
by: rrattiePosted on 2009-09-13 at 19:17:07ID: 25322686
What you need to do is this:
t_title()) , variable_get('site_name', 'Drupal')); ame', 'Drupal')); ', '')) { , '');
t_title()) , variable_get('site_name', 'Drupal')); ame', 'Drupal')); ', '')) { , ''); ite_slogan ', ''));
1. open the patch file (it is just some code to copy and paste).
2. open the theme.inc file in the includes directory.
3. go to line 1798
4. replace:
// Construct page title
if (drupal_get_title()) {
$head_title = array(strip_tags(drupal_ge
}
else {
$head_title = array(variable_get('site_n
if (variable_get('site_slogan
$head_title[] = variable_get('site_slogan'
}
}
$variables['head_title'] = implode(' | ', $head_title);
$variables['base_path'] = base_path();
$variables['front_page'] = url();
$variables['breadcrumb'] = theme('breadcrumb', drupal_get_breadcrumb());
$variables['feed_icons'] = drupal_get_feeds();
with:
// Construct page title
if (drupal_get_title()) {
$head_title = array(strip_tags(drupal_ge
}
else {
$head_title = array(variable_get('site_n
if (variable_get('site_slogan
- $head_title[] = variable_get('site_slogan'
+ $head_title[] = strip_tags(variable_get('s
}
}
$variables['head_title'] = implode(' | ', $head_title);
$variables['base_path'] = base_path();
$variables['front_page'] = url();
$variables['breadcrumb'] = theme('breadcrumb', drupal_get_breadcrumb());
$variables['feed_icons'] = drupal_get_feeds();