无法在Wordpress主题上使用引导动态选项卡
我试图通过使用引导代码将动态选项卡添加到我的Wordpress主题(Hestia),如中所示 作为参考,“Hestia”主题已经包含Bootstrap css和js以及主题的“function.php”文件中要运行Bootstrap的以下代码行:无法在Wordpress主题上使用引导动态选项卡,wordpress,tabs,bootstrap-4,Wordpress,Tabs,Bootstrap 4,我试图通过使用引导代码将动态选项卡添加到我的Wordpress主题(Hestia),如中所示 作为参考,“Hestia”主题已经包含Bootstrap css和js以及主题的“function.php”文件中要运行Bootstrap的以下代码行: function my\u scripts\u enqueue(){ wp_register_脚本('bootstrap js',get_template_directory_uri()。/js/bootstrap.min.js',array('jq
function my\u scripts\u enqueue(){
wp_register_脚本('bootstrap js',get_template_directory_uri()。/js/bootstrap.min.js',array('jquery'),NULL,true);
wp_register_样式('bootstrap css',get_template_directory_uri()。/css/bootstrap.min.css',false,NULL,'all');
wp_排队_脚本('bootstrap js');
wp_排队_样式(“引导css”);
}
添加_操作('wp_排队_脚本','my_脚本_排队')代码>