Set Default Table Settings | WordPress.org

[ad_1]

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

(@jardry)

Hi Tobias,

Thank you for your prompt response and solution.
Its prefect for my needs.

Regards

Jardry

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 in the plugin directory. Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer