造型在index.php上起作用,但在single.php上消失



我正在尝试以single.php输出WooCommerce产品。但是由于某种原因,我无法弄清楚的样式中断,尽管它在索引页面上运行良好。

不用数据库中的任何内容,只需get_header函数和get_footer函数

function styles_and_scripts(){
  wp_enqueue_style('style', get_stylesheet_uri());
  wp_enqueue_style('bulma', get_stylesheet_directory_uri().'/assets/css/bulma.css', null, false);
}
add_action('wp_enqueue_scripts', 'styles_and_scripts');

Bulma Navbar删除其样式。我想这与链接有关。

检查bootstrap css是否没有在single.php上加载。它与Bulma框架发生冲突。

相关内容

最新更新