-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
39 lines (33 loc) · 1.18 KB
/
functions.php
File metadata and controls
39 lines (33 loc) · 1.18 KB
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
<?php
/* load CSS */
function simpleblock_scripts() {
wp_enqueue_style( 'main', get_template_directory_uri() . '/style.css', array(), '0.9' );
wp_enqueue_style( 'google', 'https://fonts.googleapis.com/css?family=Quattrocento:400,700', array(), '0.9');
if ( is_admin_bar_showing() )
wp_enqueue_style( 'admin-header', get_template_directory_uri() . '/admin-style.css', array(), '0.9' );
}
add_action( 'wp_enqueue_scripts', 'simpleblock_scripts' );
/* register menus */
function simpleblock_register_menu() {
register_nav_menu('header-menu',__( 'Header Menu' ) );
register_nav_menu('footer-menu', __( 'Footer Menu' ) );
}
add_action( 'init', 'simpleblock_register_menu' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'html5' );
/**
* Register widgetized areas.
*
*/
function simpleblock_widgets_init() {
register_sidebar( array(
'name' => 'footer',
'id' => 'footer_widget',
'before_widget' => '<div id="footer_widget">',
'after_widget' => '</div>',
'before_title' => '<h2 class="footer_widget">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'simpleblock_widgets_init' );
?>