|
|
@ -119,11 +119,11 @@ add_action( 'widgets_init', 'portage_widgets_init' ); |
|
|
|
*/ |
|
|
|
function portage_scripts() { |
|
|
|
wp_enqueue_style( 'portage-googlefont', 'https://fonts.googleapis.com/css?family=IM+Fell+English:400,400italic', 'portage-style', wp_get_theme() -> get( 'Version' ), 'all' ); |
|
|
|
|
|
|
|
/* |
|
|
|
if ( !wp_style_is( 'font-awesome.min.css', 'enqueued' ) ) { |
|
|
|
wp_enqueue_style( 'portage-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', 'portage-style', wp_get_theme() -> get( 'Version' ), 'all' ); |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
wp_enqueue_style( 'portage-style', get_stylesheet_uri() ); |
|
|
|
|
|
|
|
wp_enqueue_style( 'portage-menus', get_template_directory_uri() . '/styles/menus.css', array( 'portage-style' ), wp_get_theme() -> get( 'Version' ) ); |
|
|
@ -135,13 +135,16 @@ if ( !wp_style_is( 'font-awesome.min.css', 'enqueued' ) ) { |
|
|
|
wp_enqueue_script( 'portage-menumaker', get_template_directory_uri() . '/js/menumaker.js', array( 'jquery' ), wp_get_theme() -> get( 'Version' ), true ); |
|
|
|
|
|
|
|
wp_enqueue_script( 'portage-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), wp_get_theme() -> get( 'Version' ), true ); |
|
|
|
|
|
|
|
|
|
|
|
wp_enqueue_script( 'portage-font-awesome', 'https://kit.fontawesome.com/7a45e15014.js', array(), wp_get_theme() -> get( 'Version' ), true ); |
|
|
|
|
|
|
|
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
|
|
|
wp_enqueue_script( 'comment-reply' ); |
|
|
|
} |
|
|
|
} |
|
|
|
add_action( 'wp_enqueue_scripts', 'portage_scripts' ); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Enable live changes in the customizer |
|
|
|
*/ |
|
|
|