[英]Adding a stylesheet to WordPress Theme
I have the following code to where it's supposed to work.我有以下代码到它应该工作的地方。
function boom_theme_styles() {
wp_enqueue_style( 'style_css', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'boom_theme_styles' );
However, the style.css will not load.但是,不会加载 style.css。 Looks like a basic webpage from the 1990s.
看起来像是 1990 年代的基本网页。 Thanks for the help.
谢谢您的帮助。
wp_enqueue_style('style_css', get_stylesheet_uri());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.