-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
64 lines (60 loc) · 2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
function setup_theme()
{
register_nav_menu('primary', 'Primary Menu');
register_nav_menu('footer', 'Footer Menu');
register_sidebar(array(
'name' => 'Primary Sidebar',
'id' => 'primary-sidebar',
'description' => 'The primary side bar.',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<header><h5 class="widgettitle">',
'after_title' => '</h5></header>'
));
register_sidebar(array(
'name' => 'Secondary Sidebar',
'id' => 'secondary-sidebar',
'description' => 'The secondary side bar. Only left out on homepage',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<header><h5 class="widgettitle">',
'after_title' => '</h5></header>'
));
register_sidebar(array(
'name' => 'Front Page Sidebar',
'id' => 'front-page-sidebar',
'description' => 'These are displayed horizontally on the hompage.',
'before_widget' => '<div id="%1$s" class="home_box %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>'
));
}
add_action('after_setup_theme', 'setup_theme');
function include_javascript()
{
wp_enqueue_script(
'bigtarget',
get_template_directory_uri() . '/scripts/jquery.bigtarget.js',
array('jquery'),
false,
true
);
wp_enqueue_script(
'custom',
get_template_directory_uri() . '/scripts/script.js',
array('jquery', 'bigtarget'),
false,
true
);
wp_enqueue_script(
'html5shiv',
get_template_directory_uri() . '/scripts/html5shiv.js'
);
}
add_action('wp_enqueue_scripts', 'include_javascript');
function deregister_plugin_styles() {
wp_deregister_style( 'katb_user_styles' );
}
add_action( 'wp_print_styles', 'deregister_plugin_styles', 100 );