Skip to content

Commit d3d7723

Browse files
authored
Merge pull request #26 from justcoded/develop
Removed emoji by default, added image placeholder and site logo options by default
2 parents 91217a7 + 50513e8 commit d3d7723

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
@@ -28,8 +28,10 @@ public function init() {
2828

2929
protected function general_tab() {
3030
return $this->build( 'general_options' )
31+
->addImage( 'site_logo' )
3132
->addText( 'copyright_text' )
3233
->setDefaultValue( '© ' . date( 'Y' ) . '. All rights reserved.' )
34+
->addImage( 'image_placeholder', array( 'return_format' => 'id' ) )
3335
->getRootContext();
3436
}
3537

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)