@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/?p=3329>
  a sioc:Post ;
  dc:title "LH Sortable Tables" ;
  dcterms:identifier 3329 ;
  dc:modified "2022-07-11T15:36:03Z"^^xsd:dateTime ;
  dc:created "2020-10-07T16:49:52Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-sortable-tables/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """
<h2 class="wp-block-heading" id="modifying-the-table-css">Modifying the table CSS</h2>



<p class="wp-block-paragraph">The plugin includes a filter &#8216;lh_sortable_tables_style_handle_filter&#8217; to ue a different css file to style the tables. Below is an example of how you would go about using this filter</p>



<pre class="wp-block-preformatted">//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 );
</pre>



<p class="wp-block-paragraph">Note the current style &#8216;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.</p>
"""^^rdf:XMLLiteral ;
  sioc:content """
Modifying the table CSS



The plugin includes a filter &#8216;lh_sortable_tables_style_handle_filter&#8217; 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 &#8216;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.
""" ;
  sioc:topic <https://lhero.org/lh_portfolio-type/plugin/> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/lh_portfolio-type/plugin/> rdfs:seeAlso <https://lhero.org/lh_portfolio-type/plugin/?feed=lhrdf&format=turtle> .
