Digital Sovereignty for everyone

LH Sortable Tables

Modifying the table CSS

The plugin includes a filter ā€˜lh_sortable_tables_style_handle_filter’ to ue a different css file to style the tables. Below is an example of how you would go about using this filter

//first register a new style file

function my_new_table_styles() {
wp_register_style( 'my-new-table-style', plugins_url( 'my-new-table-styles/css/plugin.css' ) );}

add_action( 'wp_enqueue_scripts', 'my_new_table_styles' );


//second filter the style that is enqueued
//when a sortable table is present

function my_new_table_style_enqueue($handle){

return 'my-new-table-style';

}

add_filter( 'lh_sortable_tables_style_handle_filter', 'my_new_table_style_enqueue',10,1 );

Note the current style ā€˜sortable.cssĀ“file handles the toggles that appear in the header. SO I would suggest taking a copy of that file as a starter for your new file.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu ā‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.