-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
98 lines (63 loc) · 1.66 KB
/
Copy pathfunctions.php
File metadata and controls
98 lines (63 loc) · 1.66 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* So we can add classes to the elements
*/
add_theme_support( 'avia_template_builder_custom_css' );
/**
* Remove the Import dummy data button
*/
add_theme_support( 'avia_disable_dummy_import' );
/**
* Get rid of the custom.css
* Because child theme anyway
*/
function enfoldson_print_styles() {
wp_dequeue_style( 'avia-custom' );
wp_deregister_style( 'avia-custom' );
}
add_action( 'wp_print_styles', 'enfoldson_print_styles' );
/**
* Deactivate LayerSlider
*/
add_theme_support( 'deactivate_layerslider' );
/**
* Activate Enfold Debug Mode for Super Admins
*/
function enfoldson_builder_mode() {
return 'debug';
}
if ( is_super_admin() ) {
add_action( 'avia_builder_mode', 'enfoldson_builder_mode' );
}
/**
* Remove backlink to Enfold in the footer, sorry Kriesi
*/
function tws_kriesi_backlink() {
return ' ';
}
add_filter( 'kriesi_backlink', 'tws_kriesi_backlink' );
function remove_enfold_features() {
// remove Portfolio
remove_action( 'init', 'portfolio_register' );
}
add_action( 'after_setup_theme', 'remove_enfold_features' );
function tws_avf_google_heading_font($fonts) {
$fonts['Ubuntu Mono'] = 'Ubuntu Mono';
return $fonts;
}
add_filter( 'avf_google_heading_font', 'tws_avf_google_heading_font');
function tws_avf_google_content_font($fonts) {
$fonts['Ubuntu Mono'] = 'Ubuntu Mono';
return $fonts;
}
add_filter( 'avf_google_content_font', 'tws_avf_google_content_font');
/**
* Simple shortcode to display current year
* useful for the Copyright message
*/
function tws_year_shortcode() {
$year = date( 'Y' );
return $year;
}
add_shortcode( 'year', 'tws_year_shortcode' );
?>