Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Fleiding

    (@fleiding)

    I think i found a solution.

    Just placed this code in my functions.php and it seems to work:

    add_filter( 'tablepress_table_render_options', 'tablepress_override_table_options', 10, 2 );
    function tablepress_override_table_options( $render_options, $table ) {
      $render_options['use_datatables'] = false;
      $render_options['alternating_row_colors'] = false;
    return $render_options;
    }
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, that’s exactly the solution! 🙂 Great to hear that you already found this! Note that the line

    $render_options['alternating_row_colors'] = false;

    will also turn off the “Alternating Row Colors”, so that you’ll need to remove that line if you want to use that feature.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Searching and sorting’ is closed to new replies.