Remove Contact title from contact form page

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
User avatar
Josh Lewis
Joomla! Guru
Joomla! Guru
Posts: 528
Joined: Wed Jun 11, 2008 11:12 pm
Location: Lynnwood,WA
Contact:

Re: Remove Contact title from contact form page

Post by Josh Lewis » Tue Oct 16, 2012 8:48 am

Awesome! Glad I asked because I would have looked in value. Thanks for your help.

For those interested, the language constant is "COM_CONTACT_DETAILS". I figured that out when I saw "Contact" by itself.

Clawlessic
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Fri Oct 05, 2012 8:02 am

Re: Remove Contact title from contact form page

Post by Clawlessic » Tue Oct 16, 2012 10:03 am

Now you're talking about contact forms anyway.

Is there an (free) extension which allows you to add more subjects to your contact form? The standard contact form hasn't got what i want to add.

Maybe you have one that you prefer, i would love to know.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44019
Joined: Sat Apr 05, 2008 9:58 pm

Re: Remove Contact title from contact form page

Post by Webdongle » Tue Oct 16, 2012 10:25 am

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Clawlessic
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Fri Oct 05, 2012 8:02 am

Re: Remove Contact title from contact form page

Post by Clawlessic » Tue Oct 16, 2012 1:22 pm

Tried this one out, but is there a way to change the errors you get when you fill not fill in something?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44019
Joined: Sat Apr 05, 2008 9:58 pm

Re: Remove Contact title from contact form page

Post by Webdongle » Tue Oct 16, 2012 1:46 pm

What do you mean errors ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Clawlessic
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Fri Oct 05, 2012 8:02 am

Re: Remove Contact title from contact form page

Post by Clawlessic » Tue Oct 16, 2012 2:59 pm

I ment, when you not fill in the form you get like: Please fill in all the required fields. (wanted to change that into dutch words)

Worked out by changing the language file in the extension itself. Just changed a sentence and it was like i wanted it :).

Thanks for telling about the plugin. Works like a charm!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44019
Joined: Sat Apr 05, 2008 9:58 pm

Re: Remove Contact title from contact form page

Post by Webdongle » Tue Oct 16, 2012 3:33 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

gshortt
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Mar 20, 2010 10:12 pm

Re: Remove Contact title from contact form page

Post by gshortt » Wed Oct 24, 2012 8:08 pm

Need to get rid of the "Contact Form" and "Contact" in Joomla 2.5 contact form.Where can I find these folders (below) in Joomla 2.5? These files are in 1.7, but no luck finding them in 2.5. Is there another file path I should take? Thanks

COM_CONTACT_EMAIL_FORM="Contact Form" to COM_CONTACT_EMAIL_FORM=""

and

COM_CONTACT_DETAILS="Contact" to COM_CONTACT_DETAILS=""

Digitech
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Oct 25, 2012 1:34 am

Re: Remove Contact title from contact form page

Post by Digitech » Thu Oct 25, 2012 7:12 am

To remove "Contact" remove the code on the line 46-48 in the default.php file.

Code: Select all

<?php if ($this->params->get('presentation_style')=='plain'):?>
		<?php  echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>';  ?>
	<?php endif; ?>
To remove "Contact Form" remove the code on the line 72-74 in the default.php file.

Code: Select all

	<?php if ($this->params->get('presentation_style')=='plain'):?>
			<?php  echo '<h3>'. JText::_('COM_CONTACT_EMAIL_FORM').'</h3>';  ?>
		<?php endif; ?>
In my case for some reason it didn't worked when i removed it from the overwritten file in my template, i had to modify the core... Hope that helps

User avatar
Josh Lewis
Joomla! Guru
Joomla! Guru
Posts: 528
Joined: Wed Jun 11, 2008 11:12 pm
Location: Lynnwood,WA
Contact:

Re: Remove Contact title from contact form page

Post by Josh Lewis » Thu Oct 25, 2012 8:08 am

I think a new bug tracker needs to be posted. I hope for this to be fixed by Joomla 3.5. ;)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44019
Joined: Sat Apr 05, 2008 9:58 pm

Re: Remove Contact title from contact form page

Post by Webdongle » Thu Oct 25, 2012 10:58 am

Digitech wrote:To remove "Contact" remove the code on the line 46-48 in the default.php file....
Better to create a template override than edit core files.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
hollywood
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Wed Mar 14, 2007 4:39 pm
Location: Bellingham, WA USA
Contact:

Re: Remove Contact title from contact form page

Post by hollywood » Thu Nov 01, 2012 11:14 pm

Here's and easy way to get it out with CSS. Add this code:

.contact h3 {display:none;}
Softwired - Content Management Websites with Joomla!
http://www.softwiredweb.com


Follow: http://twitter.com/tonysova

gshortt
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Mar 20, 2010 10:12 pm

Re: Remove Contact title from contact form page

Post by gshortt » Fri Nov 02, 2012 2:08 pm

Hi Anna,

You solution above almost worked. The best one yet!! :) The problem now is...I want to delete both "Contact" and "Contact Form" When I delete one and save the other one appears. I change the one that appears then the old one comes back. I want them both gone. Any ideas?

Joomla should come up with a simple way to do this.
Thanks,
Garnett

Digitech
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Oct 25, 2012 1:34 am

Re: Remove Contact title from contact form page

Post by Digitech » Fri Dec 14, 2012 12:49 am

Webdongle wrote:
Digitech wrote:To remove "Contact" remove the code on the line 46-48 in the default.php file....
Better to create a template override than edit core files.
Better would be to have an option in the form settings to turn it off... i told in the posting above that override didn't worked for me.

User avatar
coaleb
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 185
Joined: Fri Mar 16, 2012 11:40 pm
Location: California
Contact:

Re: Remove Contact title from contact form page

Post by coaleb » Fri Jan 25, 2013 5:08 am

This is a pretty old thread now, but I thought I would post this for those of you who may still be having trouble with this.

The thing to remember here is that the Single Contact menu item that most people use as their website contact form is actually intended to be linked to a person. So what you're all referring to as the "Page Title" is actually being treated by Joomla as the name of an individual. Therefor, removing the page title does not affect the default behavior of displaying the contact's name.

To make it even more clear, just because you entered "Contact Us" as the contact's name does not make it a page title - it's a name.

Therefor to remove the "title" you actually have to hide the Name by going to Contact Manager -> Contact -> Display Options -> Name: Hide

This was never fixed in Joomla because it was never broken.
Best Regards,
Brian Coale
Simpl Extensions: http://extensions.joomla.org/extensions ... play/24407

User avatar
coaleb
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 185
Joined: Fri Mar 16, 2012 11:40 pm
Location: California
Contact:

Re: Remove Contact title from contact form page

Post by coaleb » Fri Jan 25, 2013 5:12 am

As for the others who want to remove the actual contact tab:

Code: Select all

.component-content .contact .title {display:none;}
Best Regards,
Brian Coale
Simpl Extensions: http://extensions.joomla.org/extensions ... play/24407

shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Re: Remove Contact title from contact form page

Post by shoulders » Tue Jun 18, 2013 12:33 pm

hollywood wrote:Here's and easy way to get it out with CSS. Add this code:

.contact h3 {display:none;}
this worked perfectely. no core overides, no messing with stuff i do not understand. i just added it into the custom CSS box in my template. You could also edit the template css manually and add this in or use a module/plugin/compoenet to add it in for you if it is not easy to do in the template.

This really should be an option in joomla because most people only want 1 contact page with a few simple configurable fields and possibly a captcha

thanks hollywood

ANEVErt
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jul 25, 2013 11:53 am

Re: Remove Contact title from contact form page

Post by ANEVErt » Wed Sep 25, 2013 7:09 am

forkless wrote:Yup. Made sure all forms of cache were disabled as well.

Anyway, I fixed it with a template override so the constants are intact as intended.

Copied components/com_contact/views/contact/tmpl/default.php to templates/mytemplate/html/com_contact/contact/default.php

Went to line 47;

Code: Select all

<?php if ($this->params->get('presentation_style')=='plain'):?>
                <?php  echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>';  ?>
        <?php endif; ?>
Encapsulated it with some HTML remarks

Code: Select all

<!--    <?php if ($this->params->get('presentation_style')=='plain'):?>
                <?php  echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>';  ?>
        <?php endif; ?> -->
Saved and pronto, no more contact details title.

Initially I didn't get the template override working and there is probably a very logical reason for it (I'm just not too familiar with Joomla). I wonder however why /tmpl/ is ommited in the target path for the override as it is not the most practical implementation.

It took me a little bit to figure that one out that you can't do a 1:1 tree copy below views. Ideally it would have been nicer if you could just have cloned the folder from its master (from the views level).

Anyway, problem sorted. :)
What Forkless said works good although it's line 70-72 of the default.php file while using Joomla 3.1.5. Can't believe why nothing has been done with this after several years:S One should at least have the opportunity to choose to display or hide the "Contact" header/title.

Btw, If you remove the COM_CONTACT_DETAILS from the language file the Contact title will return if you ever decide to change the front end language of your Joomla installation.

joomleb
Joomla! Ace
Joomla! Ace
Posts: 1045
Joined: Sat Aug 20, 2005 8:53 am
Location: Panamá

Re: Remove Contact title from contact form page

Post by joomleb » Fri Nov 01, 2013 8:45 pm

Hi to all,
I'm not a programmer, so I want ask your opinion:

What is the best way (for the browser page load time) to get it out?
- with CSS adding the code: .contact h3 {display:none;}
- using Languages Override feature

Thanks for help :D

analographi
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Feb 03, 2009 6:17 pm

Re: Remove Contact title from contact form page

Post by analographi » Thu May 07, 2015 9:19 am

coaleb wrote:This is a pretty old thread now, but I thought I would post this for those of you who may still be having trouble with this.

The thing to remember here is that the Single Contact menu item that most people use as their website contact form is actually intended to be linked to a person. So what you're all referring to as the "Page Title" is actually being treated by Joomla as the name of an individual. Therefor, removing the page title does not affect the default behavior of displaying the contact's name.

To make it even more clear, just because you entered "Contact Us" as the contact's name does not make it a page title - it's a name.

Therefor to remove the "title" you actually have to hide the Name by going to Contact Manager -> Contact -> Display Options -> Name: Hide

This was never fixed in Joomla because it was never broken.
People went on and didn't even thank this guy for solving something that has bothered people for years!
THANK YOU

You solved it. Above you see the solution to hide the contact title and the contactform title from the joomla standart contact form. this is it. works perfectly. no hacks.

Jwd41190
Joomla! Intern
Joomla! Intern
Posts: 53
Joined: Mon Jun 13, 2011 3:01 am

Re: Remove Contact title from contact form page

Post by Jwd41190 » Sun May 06, 2018 9:28 pm

Thanks for this solution. It worked great!


Locked

Return to “General Questions/New to Joomla! 2.5”