Title: Set Default Table Settings
Last modified: September 24, 2022

---

# Set Default Table Settings

 *  Resolved [Jardry](https://wordpress.org/support/users/jardry/)
 * (@jardry)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/set-default-table-settings/)
 * Is it possible to add a TAB with the ability to set default settings for Table
   Options and Features of the Database Javascript Library?
 * The current default settings I’m changing are:
 * NOT to alternate row colours
    NOT allow visitors to sort NOT allow visitors to
   search NOT have pagination
 * Having had to import a number of tables, this became a little frustrating.
 * Thank you for considering my request.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/set-default-table-settings/#post-16039572)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I see what you mean. Currently, I don’t have plans to add a tab that allows changing
   the defaults — but, there’s a good and easy code solution for you. For example,
   add this to the end of your theme’s “funtions.php” file:
 *     ```
       add_filter( 'tablepress_table_template', 'jardry_change_tablepress_default_table_settings', 11 );
       function jardry_change_tablepress_default_table_settings( array $table ) {
         $table['options']['alternating_row_colors'] = false;
         $table['options']['use_datatables'] = false;
         return $table;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [Jardry](https://wordpress.org/support/users/jardry/)
 * (@jardry)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/set-default-table-settings/#post-16039654)
 * Hi Tobias,
 * Thank you for your prompt response and solution.
    Its prefect for my needs.
 * Regards
 * Jardry
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/set-default-table-settings/#post-16039706)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias   P.S.: In case you haven’t, please rate TablePress [here](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

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

The topic ‘Set Default Table Settings’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/set-default-table-settings/#post-16039706)
 * Status: resolved