How to remove the "search" text from search button - module Smart search?

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

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.
yordan2018
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Jan 04, 2018 11:44 am

How to remove the "search" text from search button - module Smart search?

Postby yordan2018 » Fri Feb 09, 2018 8:34 am

Hi all,

could you please tell me how can I remove the text "search" from search button on module Smart search?

Thank you all.

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3260
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: How to remove the "search" text from search button - module Smart search?

Postby AMurray » Fri Feb 09, 2018 9:22 am

From what I can see in the module's options you can only show, or not show the search button, but not alter the actual text displayed on the button.

However, I think you can do this with language overrides, such as with either of the two suggested methods below:

1) edit the language file i.e. languages/mod_search/en-GB.ini, change the language constant MOD_SEARCH_SEARCHBUTTON_TEXT to whatever value you want such as:

Code: Select all

MOD_SEARCH_SEARCHBUTTON_TEXT="WhateverValueYouWant"


2) Alternatively you can probably create a language override for this contant

You can also do this in the Language Overrides options: Go to Language > Overrides > New and search for the above (the parts in caps) and change the value.

Search for MOD_SEARCH_SEARCHBUTTON_TEXT and change the value, or create a new one like in the following screenshot.

lang_override.JPG


I don't know if MOD_SEARCH_SEARCHBUTTON_TEXT="Search" refers to the normal search module or Smart Search but I expect you can find the search string in the language file if you look for it. Should be something similar to the above maybe like MOD_SMART_SEARCH_SEARCHBUTTON_TEXT="Search".
You do not have the required permissions to view the files attached to this post.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

yordan2018
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Jan 04, 2018 11:44 am

Re: How to remove the "search" text from search button - module Smart search?

Postby yordan2018 » Fri Feb 09, 2018 9:40 am

Hi, thank you for your help.
I find it - it's JSEARCH_FILTER_SUBMIT

calvinaustins
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Feb 09, 2018 10:43 am

Re: How to remove the "search" text from search button - module Smart search?

Postby calvinaustins » Fri Feb 09, 2018 10:49 am

Thanks Yordan, we can find out through search option


Return to “General Questions/New to Joomla! 3.x”

Who is online

Users browsing this forum: jengels and 31 guests