-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
34 lines (29 loc) · 1.24 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
<?php
/* Enqueue Frontierline original stylesheet */
add_action('wp_enqueue_scripts', 'frontierline_css');
function frontierline_css() {
wp_enqueue_style('frontierline-parent', get_template_directory_uri().'/style.css');
}
/* Enqueue Font Awesome */
add_action('wp_enqueue_scripts', 'font_awesome_js');
function font_awesome_js() {
wp_enqueue_script('font_awesome', 'https://use.fontawesome.com/releases/v5.0.8/js/all.js');
}
add_filter('script_loader_tag', 'font_awesome_html_tag', 10, 3);
function font_awesome_html_tag($tag, $handle, $src) {
if ('font_awesome' === $handle) {
$tag = str_replace('></script>', ' defer integrity="sha384-SlE991lGASHoBfWbelyBPLsUlwY1GwNDJo3jSJO04KZ33K2bwfV9YBauFfnzvynJ" crossorigin="anonymous"></script>', $tag);
}
return $tag;
}
/* Register Mozilla Communities logo for setting it into the header */
register_default_headers( array(
'mozilla-cz' => array(
'url' => get_stylesheet_directory_uri().'/img/header-mozillacz-03.png',
'thumbnail_url' => get_stylesheet_directory_uri().'/img/header-mozillacz-03.png',
'description' => 'Mozilla.cz'
)
)
);
/* Opt out for suggesting the persistent object cache */
add_filter('site_status_should_suggest_persistent_object_cache', '__return_false');