-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
42 lines (25 loc) · 1.04 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
add_filter('next_post_link', 'post_link_attributes');
add_filter('previous_post_link', 'post_link_attributes');
function post_link_attributes($output) {
$code = 'class="btn"';
return str_replace('<a href=', '<a '.$code.' href=', $output);
}
add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
function posts_link_attributes() {
return 'class="btn"';
}
add_theme_support( 'menus' );
add_theme_support( 'post-thumbnails' );
function app_scripts(){
wp_enqueue_script( 'jssor', get_stylesheet_directory_uri() . '/inc/js/jssor.js', array('jquery'));
wp_enqueue_script( 'jssor.slider', get_stylesheet_directory_uri() . '/inc/js/jssor.slider.min.js', array('jquery'));
wp_enqueue_script( 'default', get_stylesheet_directory_uri() . '/inc/js/default.js', array('jquery'));
}
add_action( 'wp_enqueue_scripts', 'app_scripts' );
/**
* Custom template tags for this theme.
*/
require get_stylesheet_directory() . '/inc/template-tags.php';
?>