0
我目前正在为Wordpress构建一个插件,但是我的样式和脚本不会加载到视图页面中。Wordpress样式表不加载
功能:
function getFrontEnd()
{
// we always need jquery
wp_enqueue_script('jquery');
// load the core plugin scripts/styles
wp_enqueue_script('flex-script', __DIR__ . '/view/assets/js/wp-flex.js');
wp_enqueue_style('flex-style', __DIR__ . '/view/assets/css/wp-flex.css');
}
查看:
function getFlexImportView()
{
$pluginIndex = new controllers\FlexImport;
echo $pluginIndex->getOverview();
}
而且在类FlexImport你会发现包括对执行HTML文件。
这两种样式文件在检查完后都不在html文件中。
非常感谢!
有没有人可以帮助我吗? –