feat(core): integrasi Plus Jakarta Sans, refactor index.php, dan tambahkan page.php serta 404.php
This commit is contained in:
+12
-1
@@ -7,6 +7,8 @@
|
||||
function edukarsa_setup() {
|
||||
add_theme_support( 'title-tag' );
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script' ) );
|
||||
add_post_type_support( 'page', 'excerpt' );
|
||||
|
||||
register_nav_menus( array(
|
||||
@@ -18,10 +20,19 @@ add_action( 'after_setup_theme', 'edukarsa_setup' );
|
||||
|
||||
// 2. MENGHUBUNGKAN ASET (CSS & JS FRONTEND)
|
||||
function edukarsa_scripts() {
|
||||
// Memuat Google Font: Plus Jakarta Sans (Native Webfont)
|
||||
wp_enqueue_style(
|
||||
'edukarsa-google-fonts',
|
||||
'https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap',
|
||||
array(),
|
||||
null
|
||||
);
|
||||
|
||||
// CSS Utama Tema dengan Cache Busting time()
|
||||
wp_enqueue_style(
|
||||
'edukarsa-style',
|
||||
get_template_directory_uri() . '/style.css',
|
||||
array(),
|
||||
array('edukarsa-google-fonts'),
|
||||
time(),
|
||||
'all'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user