slowtwitch-wp-theme/functions.php

28 lines
1.0 KiB
PHP
Raw Normal View History

2024-05-29 01:20:50 +00:00
<?php
add_action('after_setup_theme', 'slowtwitch_theme_support');
function slowtwitch_theme_support() {
add_theme_support('title-tag');
}
add_action('wp_enqueue_scripts', 'slowtwitch_register_styles');
function slowtwitch_register_styles() {
wp_enqueue_style('slowtwitch-styles', get_template_directory_uri() . '/style.css', array('slowtwitch-skeleton', 'slowtwitch-normalize'), wp_get_theme()->get('version'), 'all');
wp_enqueue_style('slowtwitch-skeleton', get_template_directory_uri() . '/assets/css/skeleton.css', array(), '1.0', 'all');
wp_enqueue_style('slowtwitch-normalize', get_template_directory_uri() . '/assets/css/normalize.css', array(), '1.0', 'all');
2024-05-29 21:19:48 +00:00
wp_enqueue_style('slowtwitch-fa', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), '1.0', 'all');
2024-05-29 01:20:50 +00:00
}
add_action( 'init', 'slowtwitch_menus' );
function slowtwitch_menus() {
$locations = array(
'primary' => 'Primary Menu',
'footer' => 'Footer Menu'
);
register_nav_menus($locations);
}
?>