Skip to content

Commit 50513e8

Browse files
authored
Merge pull request #25 from justcoded/feature/emoji_and_theme_options_updates
Feature/emoji and theme options updates
2 parents bc64feb + 028e681 commit 50513e8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/Fields/Theme_Fields.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ public function init() {
2626

2727
protected function general_tab() {
2828
return $this->build( 'general_options' )
29+
->addImage( 'site_logo' )
2930
->addText( 'copyright_text' )
3031
->setDefaultValue( '© ' . date( 'Y' ) . '. All rights reserved.' )
32+
->addImage( 'image_placeholder', array( 'return_format' => 'id' ) )
3133
->getRootContext();
3234
}
3335

inc/hooks.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ function boilerplate_body_classes( $classes ) {
2121
}
2222

2323
add_filter( 'body_class', 'boilerplate_body_classes' );
24+
25+
//Remove emoji
26+
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
27+
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
28+
remove_action( 'wp_print_styles', 'print_emoji_styles' );
29+
remove_action( 'admin_print_styles', 'print_emoji_styles' );

0 commit comments

Comments
 (0)