-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
34 lines (22 loc) · 799 Bytes
/
functions.php
File metadata and controls
34 lines (22 loc) · 799 Bytes
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
<?php
// Register stylesheets
function atw_styles() {
// Add stylesheets
wp_register_style('googlefonts', 'https://fonts.googleapis.com/css?family=PT+Sans:400,700', array(), '1.0.0');
wp_register_style('normalize', get_template_directory_uri() . '/css/normalize.css', array(), '6.0.0');
wp_register_style('style', get_template_directory_uri() . '/style.css', array('normalize'), '1.0');
// Enqueue stylesheets
wp_enqueue_style('normalize');
wp_enqueue_style('style');
}
add_action('wp_enqueue_scripts', 'atw_styles');
// Add menus to theme
function atw_menus() {
register_nav_menus(array(
'header-menu' => __('Header Menu', 'atw')
));
}
add_action('init', 'atw_menus');
// Add featured image support
add_theme_support('post-thumbnails');
?>