我想在插件的前端包含后端按钮css?
这就是它在后端的嵌入方式:
http://localhost/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons,wp-auth-check&ver=3.6.1
如何将其包含在前端?我想在插件的前端包含后端按钮css?
这就是它在后端的嵌入方式:
http://localhost/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons,wp-auth-check&ver=3.6.1
如何将其包含在前端?尝试将buttons
样式:
add_action(\'wp_enqueue_scripts\', \'wpse_wp_enqueue_scripts\');
function wpse_wp_enqueue_scripts(){
wp_enqueue_style(\'buttons\');
}
我在加载CSS时遇到以下情况。我有一个WordPress主题style.css 通过此代码将设置文件导入myfunctions.php 文件:/* Function automatically executed by the hook: * 1) (OPTIONAL): Register a script (without load it): in this case register the CSS settings * 2) Load the CSS settings &#