LoginSignup
2
1

More than 5 years have passed since last update.

謎のCSS simple-paymentsを無効にする方法

Posted at

謎のCSS simple-payments.css

<head>~</head>で Jetpack のモジュールらしき謎のCSSが読み込まれている

<link rel='stylesheet' id='simple-payments-css'  href='https://www.example.co.jp/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.css' type='text/css' media='all' />

Jetpackのフォーラムでも話題になっているが、設定項目もなく、詳細不明。

とりあえず無効化

functions.phpに追加

functions.php
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
   wp_dequeue_style('simple-payments'); 
}

参考
wp_print_styles() | Function | WordPress Developer Resources
WordPressでプラグインによって読み込まれる外部スタイルシート&javascriptを削除する | webOpixel

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1