//プラグインがヘッダーに入れるCSSを一旦解除 function dequeue_css_header() { wp_dequeue_style(’contact-form-7’); wp_dequeue_style(’jquery-ui-timepicker’); wp_dequeue_style(’contact-form-7-confirm’); wp_dequeue_style(’dashicons’); wp_dequeue_style(’admin-bar’); } add_action(’wp_enqueue_scripts’, ‘dequeue_css_header’); //CSSファイルをフッターに出力 function enqueue_css_footer(){ wp_enqueue_style(’contact-form-7’); wp_enqueue_style(’jquery-ui-timepicker-css’); wp_enqueue_style(’contact-form-7-confirm’); wp_enqueue_style(’dashicons’); wp_enqueue_style(’admin-bar’); } add_action(’wp_footer’, ‘enqueue_css_footer’); function my_dequeue_plugin_files(){ wp_dequeue_style(’contact-form-7’); wp_dequeue_style(’jquery-ui-timepicker’); wp_dequeue_style(’contact-form-7-confirm’); wp_dequeue_style(’dashicons’); wp_dequeue_style(’admin-bar’); wp_dequeue_style(’jquery-ui-theme’); wp_dequeue_style(’font-awesome’); wp_dequeue_style(’font-awesome2’); wp_enqueue_style(’dashicons’); } add_action(’wp_enqueue_scripts’, ‘my_dequeue_plugin_files’, 9999); add_action(’wp_head’, ‘my_dequeue_plugin_files’, 9999); function my_enqueue_plugin_files(){ wp_enqueue_style(’contact-form-7’); wp_enqueue_style(’jquery-ui-timepicker-css’); wp_enqueue_style(’contact-form-7-confirm’); wp_enqueue_style(’dashicons’); wp_enqueue_style(’admin-bar’); wp_enqueue_style(’jquery-ui-theme’); wp_enqueue_style(’font-awesome’); wp_enqueue_style(’font-awesome2’); wp_enqueue_style(’dashicons’); } add_action(’wp_footer’, ‘my_enqueue_plugin_files’);