Thursday, January 28, 2010

Fixing capitalization on Joomla standard contact form.

The standard contact form in Joomla is used very frequently by most Joomla designers because it is so convenient, and it is already there! But have you ever noticed that the capitalization is a little flaky? For example:

Enter your Name:
Email address:
Message Subject:

In other words, there is no consitency in the capitalization of these labels. Fixing this is pretty straightforward.

First I would recommend that you install the component eXtplorer for easy navigation of the file structure. The, go to the folder components > com_contact > views > contact > tmpl and edit the file "default_form.php".

You'll notice that the text in question is wrapped around the function call JText::_. Simply remove the function call and edit the label text to display as you prefer. Then save the file. That's it!

IMPORTANT: This does not work with the Joom Fish component. It cases Joomlfish to stop working on the Contact form, i.e. no translation available.

If you need a Joomla website, Joomla Bliss Ottawa is the website design shop in Ottawa I co-own with my wife.

If you need SEO, my wife runs an SEO Ottawa consultancy. We'll be happy to help you.