Skip to content
Permalink
Browse files

Font Awesome読み込み関数追加

  • Loading branch information...
yhira committed Jun 14, 2018
1 parent ede4a7b commit 9d4e29d502fda15532d367a43b93dee7c5718b57
Showing with 12 additions and 2 deletions.
  1. +3 −1 lib/admin.php
  2. +1 −1 lib/scripts.php
  3. +8 −0 lib/utils.php
@@ -9,7 +9,9 @@ function admin_print_styles_custom() {
if (!is_user_administrator()) {
echo '<style>#toplevel_page_jetpack{display:none;}</style>';
}
wp_enqueue_style( 'font-awesome-style', FONT_AWESOME_CDN_URL );
//Font Awesome
wp_enqueue_style_font_awesome();
//カラーピッカー
wp_enqueue_style( 'wp-color-picker' );
@@ -18,7 +18,7 @@ function wp_enqueue_scripts_custom() {
///////////////////////////////////////////
//Font Awesome
///////////////////////////////////////////
wp_enqueue_style( 'font-awesome-style', FONT_AWESOME_CDN_URL );
wp_enqueue_style_font_awesome();
///////////////////////////////////////////
//設定変更に必要なCSS
@@ -246,6 +246,14 @@ function get_highlight_js_css_url(){
}
endif;
//Font Awesomeの読み込み
if ( !function_exists( 'wp_enqueue_style_font_awesome' ) ):
function wp_enqueue_style_font_awesome(){
wp_enqueue_style( 'font-awesome-style', FONT_AWESOME_CDN_URL );
}
endif;
//jQueryファイルの読み込み
if ( !function_exists( 'wp_enqueue_script_jquery_js' ) ):
function wp_enqueue_script_jquery_js(){
wp_deregister_script('jquery');

0 comments on commit 9d4e29d

Please sign in to comment.
You can’t perform that action at this time.