Skip to content
Permalink
Browse files

IcoMoon読み込み関数の追加

  • Loading branch information...
yhira committed Jun 14, 2018
1 parent 9d4e29d commit c0dafee33757e617bcb778530a3c1c03b9161ebf
Showing with 10 additions and 3 deletions.
  1. +2 −1 lib/admin.php
  2. +1 −2 lib/scripts.php
  3. +7 −0 lib/utils.php
@@ -50,7 +50,8 @@ function admin_print_styles_custom() {
//設定変更CSSの読み込み
//wp_add_css_custome_to_inline_style();
//IcoMoonの呼び出し
wp_enqueue_style( 'icomoon-style', get_template_directory_uri() . '/webfonts/icomoon/style.css' );
wp_enqueue_style_icomoon();
$select_index = 0;
if (isset($_POST['select_index'])) {
$select_index = intval($_POST[SELECT_INDEX_NAME]);
@@ -25,11 +25,10 @@ function wp_enqueue_scripts_custom() {
///////////////////////////////////////////
wp_add_css_custome_to_inline_style();
///////////////////////////////////////////
//IcoMoon
///////////////////////////////////////////
wp_enqueue_style( 'icomoon-style', get_template_directory_uri() . '/webfonts/icomoon/style.css' );
wp_enqueue_style_icomoon();
///////////////////////////////////////////
//ソースコードのハイライト表示
@@ -253,6 +253,13 @@ function wp_enqueue_style_font_awesome(){
}
endif;
//IcoMoonの読み込み
if ( !function_exists( 'wp_enqueue_style_icomoon' ) ):
function wp_enqueue_style_icomoon(){
wp_enqueue_style( 'icomoon-style', get_template_directory_uri() . '/webfonts/icomoon/style.css' );
}
endif;
//jQueryファイルの読み込み
if ( !function_exists( 'wp_enqueue_script_jquery_js' ) ):
function wp_enqueue_script_jquery_js(){

0 comments on commit c0dafee

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