• Resolved heymrdj27

    (@heymrdj27)


    Hi,

    Is there a way to style just the title? Ie add bold text or an underline and reduce the padding between title and first row?

    Or alternatively tell the Table to use H3 instead of H2?

    Thanks

    DJ

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, all of this is possible. For the first idea, you’d simply use CSS code like

    .tablepress-table-name {
      font-weight: bold;
      text-decoration: underline;
      padding-bottom: 5px;
    }

    Changing the h2 to and h3 is also possible, by adding this code into your theme’s “functions.php” file:

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

    Regards,
    Tobias

    Thread Starter heymrdj27

    (@heymrdj27)

    Great Answers and very fast for which I will give aa donation in a second thankyou!!

    Look at: https://tr2.mod-design.co.uk/
    Under prices see the gap btween makeup and the “Makeup Day/Evening”
    Thats what Im trying to reduce

    Thanks again

    DJ

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, ok. That’s actually a bottom margin, so please replace
    padding-bottom: 0;
    with
    margin-botton: 0;

    And thanks for the donation, I really appreciate it!

    Regards,
    Tobias

    Thread Starter heymrdj27

    (@heymrdj27)

    Fantastic ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use H3 instead of H2’ is closed to new replies.