This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·50 lines (40 loc) · 1.67 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
if ( ! function_exists( 'yapenhasboediluhur_theme_support' ) ) :
function yapenhasboediluhur_theme_support() {
// Adding support for core block visual styles.
add_theme_support( 'wp-block-styles' );
// Enqueue editor styles.
$editorStyle = get_template_directory_uri() . '/dist/styles/root.css';
add_editor_style( $editorStyle );
}
add_action( 'after_setup_theme', 'yapenhasboediluhur_theme_support' );
endif;
/**
* Enqueue scripts and styles.
*/
if (!function_exists('yapenhasboediluhur_theme_scripts')):
function yapenhasboediluhur_theme_scripts() {
// Enqueue theme stylesheet.
wp_enqueue_style( 'yapenhasboediluhur-theme-style', get_template_directory_uri() . '/dist/styles/root.css', array(), wp_get_theme()->get( 'Version' ) );
// Enqueue theme scripts.
wp_enqueue_script( 'yapenhasboediluhur-theme-script', get_template_directory_uri() . '/dist/js/main.js', array(), wp_get_theme()->get( 'Version' ), true );
}
add_action( 'enqueue_block_assets', 'yapenhasboediluhur_theme_scripts' );
endif;
/**
* Wordpress Head
*/
if (!function_exists('yapenhasboediluhur_head')):
function yapenhasboediluhur_head() {
?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="https://assets.yapenhasboediluhur.sch.id/img/logo.png" />
<!--[if IE]>
<link href="https://assets.yapenhasboediluhur.sch.id/img/logo.png" rel="shortcut icon" />
<![endif]-->
<?php
}
add_action( 'wp_head', 'yapenhasboediluhur_head' );
endif;