-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
57 lines (47 loc) · 1.18 KB
/
plugin.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
56
57
<?php
/**
* Plugin Name: LeSalon Wordpress
* Description: For customizing Wordpress
* Author: nabilfreeman<[email protected]>
* Author URI: http://freemans.website
* Version: 1.0.0
* Plugin URI: https://github.com/lesalonapp/lesalon-wordpress
*/
add_action('admin_head', 'lesalon_admin_logo');
function lesalon_admin_logo() {
echo '<style>
li#wlcms_admin_logo{
display:-webkit-flex;
display:flex;
-webkit-align-items:center;
align-items:center;
height:32px;
}
li#wlcms_admin_logo span{
float:none !important;
width:auto !important;
height:auto !important;
line-height:normal !important;
margin:0px 10px !important;
}
li#wlcms_admin_logo span img{
width:auto !important;
}
</style>';
}
add_action('wp_head', 'lesalon_noindex_tag');
function lesalon_noindex_tag() {
echo '<meta name="robots" content="noindex">';
}
add_action('admin_head', 'lesalon_no_font_family');
function lesalon_no_font_family() {
echo '<style>
.mce-widget[aria-label="Font Family"] {
display:none;
}
#adminmenu #toplevel_page_fonts-plugin {
display:none;
}
</style>';
}
?>