• Resolved nmckinder

    (@nmckinder)


    Hi,
    When I enable the “Head Row Option” in the Table Options for my table, the content in all the cells of the first row of my table lose their formatting (content is not left-aligned and background is not clear like the rest of the rows). How can I fix this so that the first row is not affected when I enable the “Head Row Option”?

    The only reason I am enabling the ‘head row option’ is because I would like to have the Search bar displayed and functional.

    My second question…regarding the Search bar, is there a way to have it search items in all columns, including the hidden ones? Currently it only searches the displayed columns.

    Thanks!

    ps. Here is the ‘debug and version’ information’:
    · Website: https://environmentalsciencelabs.com/wordpress
    · TablePress: 1.9.2
    · TablePress (DB): 38
    · TablePress table scheme: 3
    · Plugin installed: 2019/04/08 01:24:30
    · WordPress: 5.1.1
    · Multisite: no
    · PHP: 7.2.16
    · mysqli Extension: true
    · mySQL (Server): 5.7.23-23
    · mySQL (Client): mysqlnd 5.0.12-dev – 20150407 – $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
    · ZIP support: yes
    · UTF-8 conversion: yes
    · WP Memory Limit: 40M
    · Server Memory Limit: 256M
    · Magic Quotes: off
    · WP_DEBUG: false
    · WP_POST_REVISIONS: true

    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 question, and sorry for the trouble.

    The header row has a different styling by design, to make it distinguishable.

    In your case, the best solution to modify/hide that is similar to what we can use to make hidden columns searchable: We need to hide them in a different way.

    For that, please:
    1. Un-Hide the columns that you want to be searchable.
    2. Add a new and empty first row to the table (as a dummy header row).
    3. Add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-1 thead {
      display: none;
    }
    .tablepress-id-1 .column-5,
    .tablepress-id-1 .column-6,
    .tablepress-id-1 .column-7 {
      display: none;
    }

    4. Adjust the column numbers in that second part of the code to make the column numbers of the columns that you want to be hidden but searchable.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘First Row Discrepency and Search Bar’ is closed to new replies.