無効にWordPressのテンプレートのデフォルトのスタイル

  我々は、彼らがそれに対処する方法のデフォルトスタイルを使用しない場合は、このようtwentytwentyスタイルとしてWordpressのテーマがあることを知っていますか?実際には、非常に、シンプルな外観とし、ytkahを参照してください。登録およびエンキュースタイルと関数定義の登録とエンキュースクリプトを持っている2020文書のテーマ、そしておそらく周りの177行にFunction.php、彼らはそれにコメントします

/ ** 
 *登録およびエンキュースタイル。
 * / 
//関数twentytwenty_register_styles(){ 
// 
// $ theme_version = wp_get_theme() - > GET( 'バージョン'); 
// 
// wp_enqueue_style( 'twentytwenty-スタイル'、get_stylesheet_uri()、配列()、$ theme_version)。
// wp_style_add_data( 'twentytwentyスタイル'、 'RTL'、 '交換してください'); 
// 
// //インラインスタイルとしてカスタマイザーの設定の出力を追加します。
// wp_add_inline_style( 'twentytwenty-スタイル'、twentytwenty_get_customizer_css( 'フロントエンド')); 
// 
// //印刷用CSSを追加します。
// wp_enqueue_style( 'twentytwenty-印刷スタイル'、get_template_directory_uri() '/print.css'、NULL、$ theme_version、 '印刷'。);

// add_action( 'wp_enqueue_scripts'、 'twentytwenty_register_styles'); 

/ ** 
 *登録およびエンキュースクリプト。
 * / 
//関数twentytwenty_register_scripts(){ 
// 
// $ theme_version = wp_get_theme() - > GET( 'バージョン'); 
// 
//するif(!(is_admin())&& is_singular()&& comments_open()&& get_option( 'thread_comments')){ 
// wp_enqueue_script( 'コメント返信'); 
//} 
// 
// wp_enqueue_script( 'twentytwenty-jsの'、get_template_directory_uri() '/assets/js/index.js'、配列()、$ theme_version、偽。); 
// wp_script_add_data( 'twentytwenty-jsの'、 '非同期'、TRUE); 
// 
//} 
//

  

おすすめ

転載: www.cnblogs.com/ytkah/p/11906206.html