-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions.php
executable file
·55 lines (42 loc) · 1.23 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
/**
* Functions and definitions.
*
* @link https://livecomposerplugin.com/themes/
*
* @package Orao
*/
/**
* Content Width
* ( WP requires it and LC uses is to figure out the wrapper width )
*/
if ( ! isset( $content_width ) ) {
$content_width = 1140;
}
if ( ! function_exists( 'lct_theme_setup' ) ) {
/**
* Basic Theme Setup
*/
function lct_theme_setup() {
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
// Enable Post Thumbnails ( Featured Image ).
add_theme_support( 'post-thumbnails' );
// Title tag support.
/* add_theme_support( 'title-tag' ); */
// Enable support for HTML5 markup.
add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form' ) );
}
} add_action( 'after_setup_theme', 'lct_theme_setup' );
/**
* Load Scripts
*/
function lct_load_scripts() {
wp_enqueue_style( 'main-style', get_stylesheet_uri(), array(), '1.0' );
wp_enqueue_script( 'jquery' );
} add_action( 'wp_enqueue_scripts', 'lct_load_scripts' );
/**
* Include Files
*/
include get_template_directory() . '/live-composer/init.php';
include get_template_directory() . '/inc/importer/init.php';