-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
42 lines (28 loc) · 1.03 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
<?php
function theme_enqueue_styles()
{
$parent_style = 'parent-style';
wp_enqueue_style($parent_style, get_template_directory_uri() . '/style.css');
wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', array($parent_style));
}
add_action('wp_enqueue_scripts', 'theme_enqueue_styles', 1000);
function my_child_theme_setup()
{
load_child_theme_textdomain('coaching', get_stylesheet_directory() . '/languages');
}
add_action('after_setup_theme', 'my_child_theme_setup');
add_action('init', 'my_add_excerpts_to_pages');
function my_add_excerpts_to_pages()
{
add_post_type_support('page', 'excerpt');
}
// Enable shortcodes in text widgets
add_filter('widget_text', 'do_shortcode');
//add_filter('https_ssl_verify', '__return_false');
////
//add_filter('https_local_ssl_verify', '__return_false');
function add_google_verification()
{ ?>
<meta name="google-site-verification" content="QGz_0VQDMyn7b4j8LwNRqgWdrP7WkOIncHDqPVC4CwE"/>
<?php }
add_action('wp_head', 'add_google_verification');