-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfunctions.php
36 lines (28 loc) Β· 1.4 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
<?php
define( 'MTRCN_VERSION', 1.0 );
/*-----------------------------------------------------------------------------------*/
/* Set the maximum allowed width for any content in the theme
/*-----------------------------------------------------------------------------------*/
if ( ! isset( $content_width ) ) $content_width = 900;
/*-----------------------------------------------------------------------------------*/
/* Add Rss feed support to Head section
/*-----------------------------------------------------------------------------------*/
add_theme_support( 'automatic-feed-links' );
/*-----------------------------------------------------------------------------------*/
/* Add post thumbnail/featured image support
/*-----------------------------------------------------------------------------------*/
add_theme_support( 'post-thumbnails' );
/*-----------------------------------------------------------------------------------*/
/* Register main menu for Wordpress use
/*-----------------------------------------------------------------------------------*/
register_nav_menus(
array(
'primary' => __( 'Primary Menu', 'mtrcn'),
'social' => __( 'Social Links', 'mtrcn'),
)
);
function mtrcn_scripts() {
wp_enqueue_style('style.css', get_stylesheet_directory_uri() . '/style.css');
}
add_action( 'wp_enqueue_scripts', 'mtrcn_scripts' );
require get_template_directory() . '/inc/social-icon-functions.php';