Disable wordpress template default styles

  We know that there will be wordpress themes such as twentytwenty style, if they do not want to use the default style for how to deal with it? In fact, very simple, with a look and see with ytkah. Function.php into the theme of the 2020 document, which has Register and Enqueue Styles and the function definition Register and Enqueue Scripts, and probably around 177 lines, they will comment on it

/**
 * Register and Enqueue Styles.
 */
//function twentytwenty_register_styles() {
//
//	$theme_version = wp_get_theme()->get( 'Version' );
//
//	wp_enqueue_style( 'twentytwenty-style', get_stylesheet_uri(), array(), $theme_version );
//	wp_style_add_data( 'twentytwenty-style', 'rtl', 'replace' );
//
//	// Add output of Customizer settings as inline style.
//	wp_add_inline_style( 'twentytwenty-style', twentytwenty_get_customizer_css( 'front-end' ) );
//
//	// Add print CSS.
//	wp_enqueue_style( 'twentytwenty-print-style', get_template_directory_uri() . '/print.css', null, $theme_version, 'print' );
//
//}

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

/**
 * Register and Enqueue Scripts.
 */
//function twentytwenty_register_scripts() {
//
//	$theme_version = wp_get_theme()->get( 'Version' );
//
//	if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
//		wp_enqueue_script( 'comment-reply' );
//	}
//
//	wp_enqueue_script( 'twentytwenty-js', get_template_directory_uri() . '/assets/js/index.js', array(), $theme_version, false );
//	wp_script_add_data( 'twentytwenty-js', 'async', true );
//
//}
//
//add_action( 'wp_enqueue_scripts', 'twentytwenty_register_scripts' );

  

Guess you like

Origin www.cnblogs.com/ytkah/p/11906206.html