-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
56 lines (45 loc) · 1 KB
/
functions.php
File metadata and controls
56 lines (45 loc) · 1 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/*
Theme Name: Chris Lockwood's WEB 170 Word Press Theme
Author: Chris Lockwood
Author URI: http://www.clockwooddw.com/
Description: This is a theme for my WEB 170 WordPress Class
Version: 1.0
*/
//Register menus
register_nav_menus(array(
'main-menu' => __( 'Main' ),
));
//Enable featured images and post thumbnails
add_theme_support('post-thumbnails');
//Enable excerpts on pages
add_post_type_support('page', 'excerpt');
//Register Sidebar
register_sidebar(array(
'before_widget' => '<div class="widget">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2'
));
//get my title tag
function get_my_title_tag() {
global $post;
if(is_front_page()) {
bloginfo('description');
}
elseif (is_page() || is_single()) {
the_title();
}
else {
bloginfo('description');
}
if($post->post_parent) {
echo ' | ';
echo get_the_title($post->post_parent);
}
echo ' | ';
bloginfo('name'); //site name
echo ' | ';
echo 'Seattle, WA';// wrote out the city and state
}
?>