-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
49 lines (37 loc) · 1.01 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
49
<?php
/**
* Functions
*
* Author: Mahbub Hasan Imon <[email protected]>
* Author URI: https://mhimon.dev / https://ultradevs.com
*
* @package VTBT
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
// Theme setup.
function vtbt_theme_setup() {
// Title Tag.
add_theme_support( 'title-tag' );
// Post Thumbnails.
add_theme_support( 'post-thumbnails' );
// HTML5 Support.
add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );
// RSS Feed Links.
add_theme_support( 'automatic-feed-links' );
// Register Menus.
register_nav_menus(
array(
'primary' => __( 'Primary Menu', 'vtbt-theme' ),
)
);
}
add_action( 'after_setup_theme', 'vtbt_theme_setup' );
// Enqueue Scripts.
function vtbt_enqueue_scripts() {
// Theme Styles.
wp_enqueue_style( 'vtbt-style', get_stylesheet_uri(), array(), '1.0.0', 'all' );
}
add_action( 'wp_enqueue_scripts', 'vtbt_enqueue_scripts' );
// Vite.
require_once get_template_directory() . '/inc/vite.php';