Created
March 30, 2015 20:02
-
-
Save Willem-Siebe/d0a2ba73cc3b980f1165 to your computer and use it in GitHub Desktop.
Changing heading element level from TablePress tables, see https://wordpress.org/support/topic/how-to-change-table-name-css-from-to?replies=2 and https://github.com/TobiasBg/TablePress/issues/20#event-148767951.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changing heading element level from TablePress tables, see https://gist.github.com/Willem-Siebe/d0a2ba73cc3b980f1165. | |
add_filter( 'tablepress_print_name_html_tag', 'wsis_tablepress_change_table_name_h2_to_h4', 10, 2 ); | |
function wsis_tablepress_change_table_name_h2_to_h4( $tag, $table_id ) { | |
$tag = 'h4'; | |
return $tag; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment