Remove "Search" label from above Joomla mod_search text box?

This forum is for general questions about extensions for Joomla! version 1.5.x.

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.
Locked
FChopin98
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Feb 01, 2010 9:07 pm

Remove "Search" label from above Joomla mod_search text box?

Post by FChopin98 » Tue Mar 02, 2010 2:00 am

I'm having a devil of a time with what should be a simple process: removing the word "Search" that appears as a title above the standard Joomla search box with the mod_search module. I'm not referring to the "search ..." text appearing within the box, or the module title that can be enabled with the "Show Title" parameter in the module, but to the annoying word "Search" that appears magically above the box.

I've tried commenting out the SEARCH = Search line from both of the en-GB search.ini files using both a ";" and a "#" but that didn't seem to have any effect.

I'm running Joomla on a local XAMPP server under windows, if that helps.

Thanks in advance for any assistance.

User avatar
dizzi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3136
Joined: Fri Dec 21, 2007 9:36 pm
Location: Yorkshire, UK

Re: Remove "Search" label from above Joomla mod_search text box?

Post by dizzi » Tue Mar 02, 2010 2:10 am

Maybe this is a template feature as this behaviour is not typical of a core Joomla! installation when the module's title is not set to be displayed.
Freedom of expression ... some may try to suppress it but they can never take it away ...
There is no problem a good miracle can't fix.

FChopin98
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Feb 01, 2010 9:07 pm

Re: Remove "Search" label from above Joomla mod_search text box?

Post by FChopin98 » Tue Mar 02, 2010 3:44 am

Thanks for the quick reply, Dizzi, I found it within a default.php file in a folder within my template's "html/mod_search" subdirectory.

Thanks for the help.

Jim

mantel
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jun 25, 2010 5:32 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by mantel » Thu Jul 01, 2010 5:39 am

I have the same problem. What did you change in default.php to get rid of search label ?

santolla
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Dec 08, 2010 2:00 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by santolla » Tue Feb 15, 2011 9:01 pm

Has anyone solved this? I can't find where to remove "Search..."?

JINZ
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 02, 2011 3:43 am

Re: Remove "Search" label from above Joomla mod_search text

Post by JINZ » Tue Mar 08, 2011 9:16 am

You can just remove it from the language file..

language/en-GB/en-GB.com_search.ini

SEARCH=Search

to SEARCH=

anniebee
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Jun 06, 2011 8:27 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by anniebee » Mon Jun 27, 2011 8:30 pm

I am a few months late, but I just wanted to add to anyone who comes across this that I fixed this by editing the file

language/en-GB/en-GB.mod_search.ini ---- note that it is "mod" not "com"

and edited the fields to look like this:

"
MOD_SEARCH_SEARCHBOX_TEXT=
MOD_SEARCH_LABEL_TEXT=
"

This removed both the 'Search...' before the module and the 'Search...' in the search box.

Hope this helps!

stevem76
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jul 14, 2011 6:36 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by stevem76 » Thu Jul 14, 2011 6:48 pm

Hi all, this looks like it should be very straightforward from the instructions - but I can't locate the language file! I'm using a JoomlaShine template in Joomla 1.6.

Can someone please tell me exactly how to find the file?

Many thanks!

Steve

anniebee
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Jun 06, 2011 8:27 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by anniebee » Thu Jul 14, 2011 6:55 pm

I found it from the root folder (not the template folder) here:

language/en-GB/en-GB.mod_search.ini

Hope that helps!

stevem76
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jul 14, 2011 6:36 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by stevem76 » Thu Jul 14, 2011 7:13 pm

Okay, I see what I've been doing! Many thanks!

anniebee
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Jun 06, 2011 8:27 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by anniebee » Thu Jul 14, 2011 7:15 pm

Glad I could help :)

Cameron Rhodes
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Apr 15, 2010 12:07 am

Re: Remove "Search" label from above Joomla mod_search text

Post by Cameron Rhodes » Sun Aug 07, 2011 6:15 pm

Hey Everyone,

I found a much easier way that works within the search module... Just add a single space in the "Box Label" Field.... this works in Joomla! 1.6, I haven't tried it in 1.5 but I'm guessing it works there too. Hope this helps!

- Cam

User avatar
sarsells
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 174
Joined: Wed May 13, 2009 12:22 pm
Location: London/Brighton
Contact:

Re: Remove "Search" label from above Joomla mod_search text

Post by sarsells » Wed Aug 17, 2011 11:41 am

I have read this post and have managed to remove searcg from above the box. However, I would like it to appear in the box. I cant seem to get it to do that.
This is from my file

PARAMTEXT=Search

SEARCH=

I had hoped that the param text would do it?
Any ideas?
Many thanks
:-[

anniebee
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Jun 06, 2011 8:27 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by anniebee » Wed Aug 17, 2011 3:06 pm

You can change that in the parameters in the module. There's one that puts text in the box and another that puts it beside it. I'm pretty sure you don't need to edit the en-gb files to do that. The reason I had to use those files is because I wanted it blank and it auto-fills if you leave it that way.

User avatar
eivietsing
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Oct 08, 2009 9:21 pm
Location: CHiNA
Contact:

Re: Remove "Search" label from above Joomla mod_search text

Post by eivietsing » Mon Sep 26, 2011 5:31 am

search module---> basic options---> box label (type 1 or two space, then the "search..." will disappear)

I do that and it works. Hope it helps.
Either make it, or break it.

trevorwood
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Tue Jun 07, 2011 2:26 pm
Contact:

Re: Remove "Search" label from above Joomla mod_search text

Post by trevorwood » Mon Oct 10, 2011 8:49 am

Cameron Rhodes wrote:Hey Everyone,

I found a much easier way that works within the search module... Just add a single space in the "Box Label" Field.... this works in Joomla! 1.6, I haven't tried it in 1.5 but I'm guessing it works there too. Hope this helps!

- Cam
brilliant - I had this off in a Joomla 1.6 installation but it appeared when I upgraded to 1.7. TVM
Trevor Wood
Redline Digital Services
www.redline.co.uk

User avatar
LAMF
Joomla! Guru
Joomla! Guru
Posts: 695
Joined: Fri Jul 03, 2009 9:51 am

Re: Remove "Search" label from above Joomla mod_search text

Post by LAMF » Fri Feb 17, 2012 10:23 pm

Cameron Rhodes wrote:Hey Everyone,

I found a much easier way that works within the search module... Just add a single space in the "Box Label" Field.... this works in Joomla! 1.6, I haven't tried it in 1.5 but I'm guessing it works there too. Hope this helps!

- Cam
This neat solution helped me in Joomla! 2.5 version. But the solution to change the language files didn't. Maybe that is a 2.5 new thing... Haven't tried it on my 1.5 sites yet so i don't know about how it works there.

bragene
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon May 28, 2012 2:55 am

Re: Remove "Search" label from above Joomla mod_search text

Post by bragene » Mon May 28, 2012 3:44 am

To remove the line of text “search” you can edit the line: MOD_SEARCH_LABEL_TEXT="Search...” found within the root folder inside: Language/en-Gb/ en-GB.mod_search.ini I recommend you to open it with word pad it makes more organized to see. this works fine to me in Joomla! 1.7

Ludwig Heijden
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri May 21, 2010 11:26 am

Re: Remove "Search" label from above Joomla mod_search text

Post by Ludwig Heijden » Thu Nov 08, 2012 4:30 pm

The 'Search…' before can be removed in the Module Smart Search Module.
Go to advanced options - Search Field Label - click Hide

Browncoat
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Aug 09, 2012 2:13 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by Browncoat » Fri Jun 14, 2013 4:28 pm

Cameron Rhodes wrote:Hey Everyone,

I found a much easier way that works within the search module... Just add a single space in the "Box Label" Field.... this works in Joomla! 1.6, I haven't tried it in 1.5 but I'm guessing it works there too. Hope this helps!

- Cam
Great, simple solution. I am glad to know there a few of those left!

trevorwood
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Tue Jun 07, 2011 2:26 pm
Contact:

Re: Remove "Search" label from above Joomla mod_search text

Post by trevorwood » Fri Jun 14, 2013 7:11 pm

Thanks - I'll remember this for next time
Trevor Wood
Redline Digital Services
www.redline.co.uk

Vinyl-Nantes
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 19, 2010 11:46 pm

Re: Remove "Search" label from above Joomla mod_search text

Post by Vinyl-Nantes » Thu Jul 31, 2014 9:58 pm

Cameron Rhodes wrote:Hey Everyone,

I found a much easier way that works within the search module... Just add a single space in the "Box Label" Field.... this works in Joomla! 1.6, I haven't tried it in 1.5 but I'm guessing it works there too. Hope this helps!

- Cam
I'm creating a template from scratch and this issue is still here.

The solution given by Cameron works with Joomla 3.3.3

Endriago
Joomla! Intern
Joomla! Intern
Posts: 56
Joined: Thu Sep 15, 2011 2:55 am
Location: FL, USA
Contact:

Re: Remove "Search" label from above Joomla mod_search text

Post by Endriago » Wed Aug 19, 2015 4:13 am

Another solution, more elegant in my opinion, is to create a module override for the Search Module. You just need to find the line:

Code: Select all

$output .= ' placeholder="' . $text . '" />';
And modify it to be:

Code: Select all

$output .= ' placeholder="" />';
Hope this helps!


Locked

Return to “Extensions for Joomla! 1.5”