-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
55 lines (47 loc) · 1.43 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
<?php
/**
* Carlisle Photo functions and definitions.
*
* @author Julian Dawson <[email protected]>
* @license MIT License
* @link https://github.com/carlislephoto/carlislephoto-org-uk-theme
*
* @package WordPress
* @subpackage CarlislePhoto
*/
if ( ! function_exists( 'carlislephoto_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function carlislephoto_setup() {
/**
* Enable support for Post Thumbnails.
* @link https://codex.wordpress.org/Post_Thumbnails
*/
add_theme_support( 'post-thumbnails' );
// Featured Post Main Thumbnail on the front page & single page template
add_image_size( 'carlislephoto-flex-thumbnail', false, false, true );
/**
* Enable support for Custom Header.
* @link https://codex.wordpress.org/Custom_Headers
*/
add_theme_support( 'custom-header' );
/**
* Register multiple custom navigation menus.
* @link https://codex.wordpress.org/Function_Reference/register_nav_menus
*/
register_nav_menus(
array(
'primary' => __( 'Primary Nav' ),
'secondary' => __( 'Secondary Nav' ),
'social' => __(' Social Follow Links')
)
);
}
endif;
add_action( 'after_setup_theme', 'carlislephoto_setup' );
?>