• Resolved wpkum

    (@wpkum)


    Hello, we want to remove /wp-content/plugins/tablepress/css/default.min.css from loading on the homepage.

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you can use a TablePress filter hook. For example, add something like this to your theme’s “functions.php” file:

    add_filter( 'tablepress_use_default_css', 'wpkum_tablepress_css_conditionally' );
    function wpkum_tablepress_css_conditionally( $load ) {
      if ( is_front_page() ) {
        $load = false;
      }
      return $load;
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Loading Tablepress Resources on Homepage’ is closed to new replies.