Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post.

    Yes, changing this from an <h2> to an <h3> is possible, and only requires some small PHP code.
    Please try adding this to your theme’s “functions.php”.

    add_filter( 'tablepress_print_name_html_tag', 'tablepress_change_table_name_h2_to_h3', 10, 2 );
    function tablepress_change_table_name_h2_to_h3( $tag, $table_id ) {
      $tag = 'h3';
      return $tag;
    }

    Regards,
    Tobias

    Thread Starter nick_the_greek

    (@nick_the_greek)

    Worked great thanks so much!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem! 🙂 Great to hear that this did it!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate the plugin here in the plugin directory. Thanks!

    Hi Tobias,

    I would like to do the same (change table-name to <h3>) but when I added the PHP code as you suggested…it didn’t work. I tried several times to ensure that it was not a typo mistake. Could it be a WordPress issue? I am currently using WordPress 3.5.1.

    Any suggestions/advice would be earnestly appreciated.

    Thanks in advance,

    Matt Peters

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Matt,

    looks like you already found the solution in http://wordpress.org/support/topic/table-name-style-change Great 🙂

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Force Table Name to h3’ is closed to new replies.