diff --git a/app/Fields/Theme_Fields.php b/app/Fields/Theme_Fields.php index 4a3835a..21d5f22 100644 --- a/app/Fields/Theme_Fields.php +++ b/app/Fields/Theme_Fields.php @@ -28,8 +28,10 @@ public function init() { protected function general_tab() { return $this->build( 'general_options' ) + ->addImage( 'site_logo' ) ->addText( 'copyright_text' ) ->setDefaultValue( '© ' . date( 'Y' ) . '. All rights reserved.' ) + ->addImage( 'image_placeholder', array( 'return_format' => 'id' ) ) ->getRootContext(); } diff --git a/inc/hooks.php b/inc/hooks.php index d378267..090f27f 100644 --- a/inc/hooks.php +++ b/inc/hooks.php @@ -21,3 +21,9 @@ function boilerplate_body_classes( $classes ) { } add_filter( 'body_class', 'boilerplate_body_classes' ); + +//Remove emoji +remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); +remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); +remove_action( 'wp_print_styles', 'print_emoji_styles' ); +remove_action( 'admin_print_styles', 'print_emoji_styles' );