Remove headings in contact form?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Intern
- Posts: 65
- Joined: Fri Apr 27, 2007 3:18 pm
Remove headings in contact form?
Can anyone tell me how to remove the <h3> headings, "Contact" and "Contact Form" from the standard layout of the contact page?
They appear in totally inappropriate places - order goes,
Name
"CONTACT"
position
Which doesn't look good at all. (IMO)
Thanks a lot in advance for any pointers. Decided to take the plunge into 1.7 and really liking it so far!
John
They appear in totally inappropriate places - order goes,
Name
"CONTACT"
position
Which doesn't look good at all. (IMO)
Thanks a lot in advance for any pointers. Decided to take the plunge into 1.7 and really liking it so far!
John
Sing all the earth
- john-doe
- Joomla! Ace
- Posts: 1008
- Joined: Tue Apr 19, 2011 7:39 pm
- Location: Colombia
- Contact:
Re: Remove headings in contact form?
Can you provide us a screen shot?
www.aldemar-hernandez.com - Custom templates and design services.
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove headings in contact form?
http://docs.joomla.org/How_to_override_ ... omla!_core
and
http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6
and
http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Intern
- Posts: 65
- Joined: Fri Apr 27, 2007 3:18 pm
Re: Remove headings in contact form?
Thanks for the fast replies, but I must admint my reaction was,
"Ha! You're kidding me, right?"
Seems I have to learn how to create a .php file and stick it somewhere to remove a heading in the contact page....?
I actually understood some of what those two docs were talking about, and found a file in /home/****/components/com_contact/views/contact/tmpl (which is a joke in itself, when all I want to do is simply delete one heading) called 'default.php' which contains the following:
<?php if ($this->params->get('presentation_style')!='plain'){?>
<?php echo JHtml::_($this->params->get('presentation_style').'.start', 'contact-slider'); ?>
<?php echo JHtml::_($this->params->get('presentation_style').'.panel',JText::_('COM_CONTACT_DETAILS'), 'basic-details'); } ?>
<?php if ($this->params->get('presentation_style')=='plain'):?>
<?php echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>'; ?>
<?php endif; ?>
If I knew anything about coding, I might know whether this has something to do with the simple problem of having a heading in a stupid place in the plain layout.
Since I know hardly anything about coding, I puzzle over why, when the presentataion style is plain, its starting with a reference to a contact slider, which is a different option.... But then I don't know what all this means.
I'll add a screen shot, to show why this has to be changed. I guess my easy fix is simply to use a different contact page component, or make a form. Especially since the core contact component still doesn't have captcha....
Probably jumped to 1.7 too soon, on reflection. Still stuck.
"Ha! You're kidding me, right?"
Seems I have to learn how to create a .php file and stick it somewhere to remove a heading in the contact page....?
I actually understood some of what those two docs were talking about, and found a file in /home/****/components/com_contact/views/contact/tmpl (which is a joke in itself, when all I want to do is simply delete one heading) called 'default.php' which contains the following:
<?php if ($this->params->get('presentation_style')!='plain'){?>
<?php echo JHtml::_($this->params->get('presentation_style').'.start', 'contact-slider'); ?>
<?php echo JHtml::_($this->params->get('presentation_style').'.panel',JText::_('COM_CONTACT_DETAILS'), 'basic-details'); } ?>
<?php if ($this->params->get('presentation_style')=='plain'):?>
<?php echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>'; ?>
<?php endif; ?>
If I knew anything about coding, I might know whether this has something to do with the simple problem of having a heading in a stupid place in the plain layout.
Since I know hardly anything about coding, I puzzle over why, when the presentataion style is plain, its starting with a reference to a contact slider, which is a different option.... But then I don't know what all this means.
I'll add a screen shot, to show why this has to be changed. I guess my easy fix is simply to use a different contact page component, or make a form. Especially since the core contact component still doesn't have captcha....
Probably jumped to 1.7 too soon, on reflection. Still stuck.
You do not have the required permissions to view the files attached to this post.
Sing all the earth
-
- Joomla! Explorer
- Posts: 427
- Joined: Thu Jan 31, 2008 8:45 am
Re: Remove headings in contact form?
I removed them from the contact language file today and it worked a charm. I suppose the correct way would be to use the override file.
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove headings in contact form?
But you askedjohnnybgoodwin wrote:Thanks for the fast replies, but I must admint my reaction was,
"Ha! You're kidding me, right?"
Seems I have to learn how to create a .php file and stick it somewhere to remove a heading in the contact page....?
....
Which suggested you wanted to edit the code not configure options.Can anyone tell me how to remove the <h3> headings, "Contact" and "Contact Form" from the standard layout of the contact page?
http://docs.joomla.org/Help17:Component ... ay_Options may be more what you want ?
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Intern
- Posts: 65
- Joined: Fri Apr 27, 2007 3:18 pm
Re: Remove headings in contact form?
Hi Webdongle
Thanks again for the link, but I understand the display options - problem is that the option to remove the headings is not there.
I was hoping for something like, "go to this file, and delete this line of code...." which is about my level!
Randelld - I'm not sure which bit of which language file you edited. Can you give me the filename, path (and line number even?!).
Appreciate the help.
Cheers
John
Thanks again for the link, but I understand the display options - problem is that the option to remove the headings is not there.
I was hoping for something like, "go to this file, and delete this line of code...." which is about my level!
Randelld - I'm not sure which bit of which language file you edited. Can you give me the filename, path (and line number even?!).
Appreciate the help.
Cheers
John
Sing all the earth
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove headings in contact form?
Not that simple because if you edit a core file then you can loose the edit on an update. Also it depends on which Template you are using, it may already have a Template override. It also depends on which view the page is eg. Article, list or blog etc.johnnybgoodwin wrote:....
I was hoping for something like, "go to this file, and delete this line of code...." which is about my level!
....
http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6 explains how to do it better than I could explain.
Please note that there is no 'Show Page Heading' in the Article, you will need to have a menu item to it for you to control that setting.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Intern
- Posts: 65
- Joined: Fri Apr 27, 2007 3:18 pm
Re: Remove headings in contact form?
Hi Again
And thanks again for the additional info. I have to move on. It seems too hard/complicated to make a simple change.
I decided to abandon the Contacts component and embed a contact form module in an article and use that instead.
[Just for the benefit of anyone else who might be looking at this, you can embed a module in an article by using {loadposition any_unique_position_name} as though it was a plug in in an article, then publish the module to that position.]
Cheers
John
And thanks again for the additional info. I have to move on. It seems too hard/complicated to make a simple change.
I decided to abandon the Contacts component and embed a contact form module in an article and use that instead.
[Just for the benefit of anyone else who might be looking at this, you can embed a module in an article by using {loadposition any_unique_position_name} as though it was a plug in in an article, then publish the module to that position.]
Cheers
John
Sing all the earth
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove headings in contact form?
If you use Aicontactsafe you don't need to use Modules anywhere
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- Yasmine
- Joomla! Intern
- Posts: 72
- Joined: Sat Aug 16, 2008 10:20 am
- Location: Charleston SC
- Contact:
Re: Remove headings in contact form?
put this css code inside of your templates css file ...b
div.contact h3 { display: none !important;}
I was shocked also how you cant configure contact form in Joomla 1.7 to not to have any headings ..
div.contact h3 { display: none !important;}
I was shocked also how you cant configure contact form in Joomla 1.7 to not to have any headings ..
-
- Joomla! Explorer
- Posts: 427
- Joined: Thu Jan 31, 2008 8:45 am
Re: Remove headings in contact form?
The correct way to do this is to add
COM_CONTACT_DETAILS=""
to the en-GB.override.ini
inthe overrides directory
COM_CONTACT_DETAILS=""
to the en-GB.override.ini
inthe overrides directory
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Nov 06, 2011 5:59 am
Re: Remove headings in contact form?
Excellent, it worked. Thanks @randelld
-
- Joomla! Apprentice
- Posts: 22
- Joined: Fri Apr 21, 2006 6:09 pm
- Location: Santa Cruz, CA
- Contact:
Re: Remove headings in contact form?
en-GB.override.ini is located in /language in version 2.5
There should be an override directory in there.
If there isn't an en-GB.override.ini file in the override directory, just create a new one with a text editor and add the line:
COM_CONTACT_DETAILS=""
There should be an override directory in there.
If there isn't an en-GB.override.ini file in the override directory, just create a new one with a text editor and add the line:
COM_CONTACT_DETAILS=""
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sun Jun 20, 2010 7:55 am
Re: Remove headings in contact form?
It works, but it also leaves two empty <h3></h3> tag pairs in the source code. Online site evaluation tool such as Nibbler would give then an error message like the one below and lower the site score.
/components/com_contact/views/contact/tmpl/default.php
but it's not permanent because with each core update Joomla! seems to overwrite this file, so you would have to get back to it and do it again.
First block starting around line 70
Second block starting around line 111
I think this whole problem could be solved by removing two blocks of code from a file located at:Many headings (13.0%) were found to be empty, or incorrectly defined. Empty or invalid headings are of no value to search engines and make a website less accessible.
/components/com_contact/views/contact/tmpl/default.php
but it's not permanent because with each core update Joomla! seems to overwrite this file, so you would have to get back to it and do it again.
First block starting around line 70
Code: Select all
<?php if ($this->params->get('presentation_style') == 'plain'):?>
<?php echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>'; ?>
<?php endif; ?>
Code: Select all
<?php if ($this->params->get('presentation_style') == 'plain'):?>
<?php echo '<h3>'. JText::_('COM_CONTACT_EMAIL_FORM').'</h3>'; ?>
<?php endif; ?>