• Resolved Gary Gordon

    (@garymgordon)


    How can I change the word “Search” to “Search This Table” or something like that.

    Since I already have a SEARCH box on my wordpress site, I would like to change the word SEARCH (just above the table) .. to say something like:

    Search This Directory or Search Directory or Search Member Directory, etc.

    How and where can I change this?

    Thanks,
    Gary

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gary,

    That word comes from a text file that includes all the strings for each language.
    You will find a file named “lang-en_US.txt” in the “datatables” subfolder of the “languages” folder of WP-Table Reloaded. In that file, you can edit the word to your desired phrase.
    However, be aware, that you will need to redo this modification after every update of the WP-Table Reloaded plugin, because the file gets reverted during the update.

    Best wishes,
    Tobias

    Gary, you can use the WP plugin CodeStyling Localization https://www.www.ads-software.com/extend/plugins/codestyling-localization/ to change the strings inside your WP admin backend.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Thomas,

    thanks for your suggestion.

    In general this is correct, unfortunately that method can not be used with this particular string, as it is in a JavaScript file.

    Best wishes,
    Tobias

    Thread Starter Gary Gordon

    (@garymgordon)

    Thanks.
    Gary

    Had the same question and glad I found the answer so easily. Thanks again for the terrific support.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    nice that you found this solution!

    There might actually be a better one
    This might be possible with some custom commands for the DataTables JavaScript library). Please try this:
    Go to the “Edit” screen of your table and look for the “Custom Commands” textfield, in the “DataTables JavaScript features” section. There, paste this code:

    "oLanguage": {"sSearch": "Enter search term:"}

    This should also change the wording, without the need to modify a file (and with that, the change lives through updates as well).

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP-Table Reloaded] How can I change the word "Search" to "Search This Table&’ is closed to new replies.