• Resolved longnha

    (@longnha)


    Hi,

    After upgraded to version 9.8, I’m unable to remove the related-posts.css with filter:

    add_filter( 'jetpack_implode_frontend_css', '__return_false', 99 );
    function jeherve_remove_all_jp_css() {
      wp_deregister_style( 'jetpack_related-posts-css' ); //Related Posts
    }
    add_action('wp_print_styles', 'jeherve_remove_all_jp_css' );

    Can you please recheck?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • MadHatter (a11n)

    (@madhattersez)

    Hello, there.

    The style handle is “jetpack_related-posts.”

    In this case, you’ll want to replace

    jetpack_related-posts-css

    with

    jetpack_related-posts

    Please let us know the results of this troubleshooting and we can go from there. Thanks!

    Thread Starter longnha

    (@longnha)

    Hi,

    I used to remove the css with style handle ‘jetpack_related-posts’ but it has been changed since version 9.8

    ‘<link rel=’stylesheet’ id=’jetpack_related-posts-css’ href=’/wp-content/plugins/jetpack/modules/related-posts/related-posts.css’ type=’text/css’ media=’all’ />’

    And I was unable to remove it since version 9.8 too.

    Thanks.

    Thread Starter longnha

    (@longnha)

    Any info on this please?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove related-posts.css’ is closed to new replies.