• Resolved keysuck

    (@keysuck)


    Hello Tobias,

    Is there any way to apply responsiveness for all tables, not just individually?

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes! For that, you’d have to adjust the default value. This can be achieved by adding

    add_filter( 'tablepress_table_render_options', 'keysuck_tablepress_responsive_scroll_for_all_tables', 11, 2 );
    function keysuck_tablepress_responsive_scroll_for_all_tables( $render_options, $table ) {
    	$render_options['responsive'] = 'scroll';
    	return $render_options;
    }

    to the end of your theme’s “functions.php” file.

    Regards,
    Tobias

    Thread Starter keysuck

    (@keysuck)

    Stellar. Thank you, always!

    • This reply was modified 5 years, 9 months ago by keysuck.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to enable responsive tables universally’ is closed to new replies.