• Resolved AliciaCalderonS

    (@aliciacalderons)


    Hi,

    I am using shortcodes to improve my table. Filters, responsive tables, formats … It is great!!! But I need to customize the table more.

    I would like to add, next to the filter, a box that allows people to search by “column 1” instead of search everything. And I would like to indicate the words “Search by shop”.

    Also I would like to change the word “SECTOR” (in the filter) by “BUSCAR POR SECTOR”.

    I have been checking the chat but the answers have not been clear to me. I don’t know where to change the codes and how to do it.

    Is it possible? Thank you very much.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I see what you mean, but unfortunately, I’m not aware of a directly usable solution here.
    For searching single columns, you would have to add a custom search/filter integration, by using API functions of the external DataTables JavaScript library.
    Changing that word “SECTOR” is not directly possible. You could however use a trick here, and work with a duplicated column. This means, that you would duplicate that “SECTOR” column in the table, and change the header cell to “BUSCAR POR SECTOR”. This could would then be hidden from the visitor with “Custom CSS”, like

    .tablepress-id-50 column-4 {
      display: none;
    }

    You would then still get two dropdown filters, and could hide the one for “SECTOR” by adding the Shortcode parameter datatables_columnfilterwidgets_exclude_columns=3 as explained on https://tablepress.org/extensions/datatables-columnfilterwidgets/

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘New search box: search by one specific column’ is closed to new replies.