Changing Text on Joomla Contact form

How do I change the text,

"Please include your phone number"

on my default Joomla contact form:

http://worldhealthcoach.com/contact-bob.html
LVL 7
weikelbobAsked:
Who is Participating?
 
Jesse MatlockUX EngineerCommented:
Ah, my apologies... I thought you want to change more than the text.. the text looks like it might be within your menu item, under the 'Page Title' field within the 'Parameters System' section - right side of the menu items page. This is based on the fact that it's wrapped within a <div class="componentheading"> tag.. which is typically reserved for headings from within Joomlas menu items, module titles, etc.

Let me know if that resolves it for you.. :)
0
 
leakim971PluritechnicianCommented:
Hello weikelbob,

Just save the following to a new file : contact-bob.html and replace the one you have on your site.

(search and replace "Please Include Your Phone Number" with the new text you want to put)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" > 
<head> 
  <base href="http://worldhealthcoach.com/contact-bob.html" /> 
  <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
  <meta name="robots" content="index, follow" /> 
  <meta name="keywords" content="joomla, Joomla" /> 
  <meta name="description" content="Joomla! - the dynamic portal engine and content management system" /> 
  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" /> 
  <title>Please Include Your Phone Number</title> 
  <link href="/templates/rhuk_milkyway/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
  <link rel="stylesheet" href="http://worldhealthcoach.com/modules/mod_superfishmenu/tmpl/css/superfish.css" type="text/css" /> 
  <script type="text/javascript" src="/media/system/js/mootools.js"></script> 
  <script type="text/javascript" src="/media/system/js/validate.js"></script> 
  <script type="text/javascript" src="http://worldhealthcoach.com/modules/mod_superfishmenu/tmpl/js/jquery.js"></script> 
  <script type="text/javascript" src="http://worldhealthcoach.com/modules/mod_superfishmenu/tmpl/js/superfish.js"></script> 
  <script type="text/javascript"> 
<!--
		function validateForm( frm ) {
			var valid = document.formvalidator.isValid(frm);
			if (valid == false) {
				// do field validation
				if (frm.email.invalid) {
					alert( "Please enter a valid e-mail address:" );
				} else if (frm.text.invalid) {
					alert( "Please make sure the form is complete and valid." );
				}
				return false;
			} else {
				frm.submit();
			}
		}
		// -->
jQuery.noConflict();
jQuery(function($){ $("ul.sf-menu").superfish({hoverClass:'sfHover', pathClass:'active', pathLevels:0, delay:200, animation:{opacity:'show', height:'show', width:'show'}, speed:100, autoArrows:0, dropShadows:0}) });
 
  </script> 
 
 
<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/rhuk_milkyway/css/template.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/rhuk_milkyway/css/black.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/rhuk_milkyway/css/black_bg.css" type="text/css" /> 
<!--[if lte IE 6]>
<link href="/templates/rhuk_milkyway/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]--> 
<!--[if IE 7]>
<link href="/templates/rhuk_milkyway/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]--> 
 
</head> 
<body id="page_bg" class="color_black bg_black width_fmax"> 
<a name="up" id="up"></a> 
<div class="center" align="center"> 
	<div id="wrapper"> 
		<div style="margin-top:-10px;" id="wrapper_r"> 
			<div id="header"> 
<a href="http://www.worldhealthcoach.com"><img style="border"0px" src="/images/stories/nlp-coach.jpg" alt="nlp weight loss"></a> 
 
			</div> 
				     <div id="withmenu"> 
						
						<ul class="menu sf-menu sf-horizontal"><li class="first-child item1"><a href="http://worldhealthcoach.com/"><span>Home</span></a></li><li class="item34"><a href="/bio.html"><span>Bio</span></a></li><li class="item2"><a href="/services.html"><span>Services</span></a></li><li class="parent item37"><span class="separator"><span>Resources</span></span><ul><li class="first-child item54"><a href="/resources/about-nlp.html"><span>About NLP</span></a></li><li class="item53"><a href="/resources/weight-loss-article.html"><span>Weight Loss Article</span></a></li><li class="item90"><a href="/resources/six-nutritional-tips.html"><span>6 Key Nutritional Tips</span></a></li><li class="last-child item91"><a href="/resources/exercise-weight-loss-tips.html"><span>5 Key Exercise Tips</span></a></li></ul></li><li class="item60"><a href="/faq.html"><span>FAQ</span></a></li><li class="item41"><a href="http://shop.nlpco.com/?Click=6052"><span>Store</span></a></li><li id="current" class="last-child active item88"><a href="/contact-bob.html"><span>Contact Bob</span></a></li></ul> 
 
				     </div> 
				
 
 
			<div id="search"> 
				
			</div> 
 
			<div id="pathway"> 
				
			</div> 
 
			<div class="clr"></div> 
 
					<div id="area"> 
									
 
						<div style="margin-left:-4px" id="leftcolumn"> 
												</div> 
 
												<div id="maincolumn_full" style="text-align:left;"> 
													
							<table class="nopad"> 
								<tr valign="top"> 
									<td> 
											<div class="componentheading"> 
		Please Include Your Phone Number	</div> 
<div id="component-contact"> 
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpaneopen"> 
<tr> 
	<td> 
		<table border="0" width="100%"> 
		<tr> 
			<td></td> 
			<td rowspan="2" align="right" valign="top"> 
						</td> 
		</tr> 
		<tr> 
			<td> 
				<br /> 
			</td> 
		</tr> 
		</table> 
	</td> 
	<td>&nbsp;</td> 
</tr> 
<tr> 
	<td width="750px"></td> 
</tr> 
<tr> 
	<td colspan="2"> 
	<br /><br /> 
	<form style="margin-top:-55px" action="/contact-bob.html" method="post" name="emailForm" id="emailForm" class="form-validate"> 
		<div class="contact_email"> 
			<label for="contact_name"> 
				&nbsp;Enter your Name:
			</label> 
			<br /> 
			<input type="text" name="name" id="contact_name" size="30" class="inputbox" value="" /> 
			<br /> 
			<label id="contact_emailmsg" for="contact_email"> 
				&nbsp;E-mail address:
			</label> 
			<br /> 
			<input type="text" id="contact_email" name="email" size="30" value="" class="inputbox required validate-email" maxlength="100" /> 
			<br /> 
			<label for="contact_subject"> 
				&nbsp;Phone Number:
			</label> 
			<br /> 
			<input type="text" name="subject" id="contact_subject" size="30" class="inputbox" value="" /> 
			<br /><br /> 
			<label id="contact_textmsg" for="contact_text"> 
				&nbsp;Enter your Message:
			</label> 
			<br /> 
			<textarea cols="50" rows="10" name="text" id="contact_text" class="inputbox required"></textarea> 
						<br /> 
				<input type="checkbox" name="email_copy" id="contact_email_copy" value="1"  /> 
				<label for="contact_email_copy"> 
					E-mail a copy of this message to your own address.				</label> 
						<br /> 
			<br /> 
			<button class="button validate" type="submit">Send</button> 
		</div> 
 
	<input type="hidden" name="option" value="com_contact" /> 
	<input type="hidden" name="view" value="contact" /> 
	<input type="hidden" name="id" value="1" /> 
	<input type="hidden" name="task" value="submit" /> 
	<input type="hidden" name="cb3c4d0cb7426c0555311f3a6d3ba95c" value="1" />	</form> 
	<br /> 
	</td> 
</tr> 
</table> 
</div> 
 
										
									</td> 
																			<td>&nbsp;</td> 
										<td style="padding-left:25px;width="170"> 
													<div class="moduletable"> 
					<p><a href="/contact-bob.html" target="_self"><img src="/images/stories/telephone-coaching-2.gif" border="0" /></a></p>		</div> 
			<div class="moduletable"> 
					<p><a href="/contact-bob.html" target="_self"><img src="/images/stories/food/benefits.gif" border="0" /></a></p>		</div> 
	
										</td> 
																	</tr> 
							</table> 
 
 
					<div class="clr"></div> 
				</div> 
 
				<div id="whitebox_b"> 
					<div id="whitebox_bl"> 
						
					</div> 
				</div> 
			</div> 
 
			<div id="footerspacer"></div> 
		</div> 
 
		<div id="footer"> 
			<div id="footer_l"> 
				<div id="footer_r"> 
					<img src="/images/stories/nlp-practitioner.jpg"> 
				</div> 
			</div> 
		</div> 
	</div> 
</div> 
 
<script type="text/javascript"> 
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script> 
<script type="text/javascript"> 
try {
var pageTracker = _gat._getTracker("UA-11147830-1");
pageTracker._trackPageview();
} catch(err) {}</script> 
</body> 
</html>

Open in new window

0
 
weikelbobAuthor Commented:
Are you sure it's that easy? I can't find contact-bob.html anywhere. It's a joomla component contact page.


0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Jesse MatlockUX EngineerCommented:
If you are using the Contact Component you will need to go to:
components/com_contact/views/contact/view.html.php and search/replace the text you wish to change.. this is ONLY if its for a single contact.. if its for a Contact Category.. then instead of the /contact/ directory, go to the /category/ directory.. :)

That should get you all set.. let me know it is works out :)
0
 
enriquecadalsoCommented:
You can do it with no hacking involved. Use Communiti Builder (http://www.joomlapolis.com/) to make a custom field (http://www.joomlado.com/support/19-set-up-joomla-1.x/33).
0
 
Jesse MatlockUX EngineerCommented:
Wow.. CB is a pretty large and heavy component to learn/use just to modify a contact form to suit this sites needs.. IMHO

You would be better served to either:
1) Use a standard form extension for Joomla like ChronoForms - it's free and VERY reliable.

or

2) Code your own and insert into an article and pass all the data to a 'std' sendmail.php file on your server (I can even provide you with a working example!)

or

3) Code the form yourself and include it into an article..

I've included the link for ChronoForms here:
http://chronoengine.com/component/content/article/1-latest/26-what-is-chronoforms.html

And some HTML form examples here:
http://css-tricks.com/nice-and-simple-contact-form/
http://www.tutorialguide.net/php_contact_form_tutorial.html

If you need any assistance using one of these solutions,.. just let me know.. we use all of these, each when they're called for, on the sites we develop. ;)
0
 
weikelbobAuthor Commented:
cloud9manager,

I went to the 2 view.html.php files that you suggested and my text is not in either one.

What information do you need to help me find it?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.