Hey,

I am developing a site for some clients and they want the title on the sitewide contact form to be changed from "Contact" to "Contact Us." Presumably I figured I would just go into the contact.module file, and do a case sensitive search for "Contact," and where I found it I would add an "Us" afterwards. I am specificially referring to the H1 title tag on the contact form (/contact) page itself. I found two instances where this code existed, on line 88:

$items[] = array('path' => 'contact',
'title' => t('Contact Us'),
'callback' => 'contact_site_page',
'access' => user_access('access site-wide contact form'),
'type' => MENU_SUGGESTED_ITEM,
);

the other right below it, starting on line 95.

But after updating and uploading the module file, nothing changes. I can't figure out where that title tag is coming from and how I can change it. I don't mind updating code to do it, but my clients are adamant about it being changed and I don't know what to tell them.

Any thoughts?

Thanks!

Comments

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

I believe this http://drupal.org/project/stringoverrides will do the trick.

Please post back if that works for you.

- Arie

rc2020’s picture

Hey,

Stringoverides does not seem to have any effect on this module. Truthfully I have never had great success with this module on other installations I have used either. I appreciate the tip, but what other methods could we try? I don't mind editing the module code but I've looked through it and found all instances of "Contact" (with a Capital "C"), and replaced them, and it doesent show up on the contact page.

Very strange.

ainigma32’s picture

The reason you don't see the change could be because you're viewing cached content.

Another method is using the locale module: http://drupal.org/node/24593

How about that one?

- Arie

rc2020’s picture

Version: 5.9 » 5.14

And I mis-assigned the drupal version. It's 5.14 not 5.09.

packdragon’s picture

Corona, thanks to your post I was able to go into the code and change my contact page title from Contact to Contact Us, just the way you wanted to. The trick to making the change show up on the site was to go to the modules page, un-enable the Contact module, then re-enable it. Afterwards the change on the site was instantaneous.

rc2020’s picture

Nice, thanks man!

I love the forums.

rc2020’s picture

Status: Postponed (maintainer needs more info) » Fixed

marking as fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

chrx’s picture

String Overrides does the trick in a snap for this exact issue. So nice!!!
cheers, chrx

tcarterfrance’s picture

Hi! I just changed the menu item title in the menu Navigation and it worked for the title as well (and I don't even use the menu)