Support » Plugin: WP-Table Reloaded » [Plugin: WP-Table Reloaded] Change wording of "Search" above the table?

  • Resolved jkgourmet

    (@jkgourmet)


    http://gringodog.com/pet-friendly-hotels-mexico/

    Tobias, what I would like to do is change the text that reads “Search” at the top of the table to something else. (This would make it clearer to the user than the current note in the table description).

    This is the code that I currently have in my options that I THINK applies to the search box/function of my table.

    .dataTables_filter {
    font-size: 120%;
    font-weight: bold!important;
    color: #990000!important;
    float: left!important;
    text-align: left!important;
    }
    .dataTables_filter input {
    font-size: 14px!important;
    color: #000000!important;
    border: solid #000000 2px;
    }

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

    (@tobiasbg)

    Hi Jeanette,

    just a question for better understanding:
    Do you want to change the word to a different term or do you want to change the styling of that word?

    Tobias

    Thread Starter jkgourmet

    (@jkgourmet)

    I’d like to change the wording to something like this:

    Search by city, state, or name of hotel. (then the search box)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, thanks for the clarification.

    That word can unfortunately not be changed by CSS (that only changes styling).
    Instead, you will need to change it in the translation file, which in your case is the file “lang-en_US.txt” in the “datatables” subfolder in the “languages” directory in the “wp-table-reloaded” plugin folder.

    Unfortunately though, this method has two drawbacks: The change will be applied to all of your tables (that have search enabled), and you would have to re-apply the change after the plugin is updated.

    Regards,
    Tobias

    Thread Starter jkgourmet

    (@jkgourmet)

    In that case, it stays the same. Might be something to consider in a future update, Tobias.

    Happy Holidays!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    unfortunately, I don’t really see a better way to solve this. The DataTables JavaScript library (which does the searching and creates the search box) will load the string directly from that mentioned text file, so there is no method to e.g. load it from the database 🙁

    Regards,
    Tobias

    Hi,
    I would like to change the word “search” to something different even if it’s applied to every search box. How do I do that?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    for that, please take a look at http://tobias.baethge.com/2010/02/extension-4-changing-datatables-strings/ where you will find a small tutorial on how you can change the strings that are visible on a table, including the word “Search”.

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Change wording of "Search" above the table?’ is closed to new replies.