Skip to content

Commit

Permalink
Merge pull request #26 from justcoded/develop
Browse files Browse the repository at this point in the history
Removed emoji by default, added image placeholder and site logo options by default
  • Loading branch information
aprokopenko authored Nov 8, 2018
2 parents 91217a7 + 50513e8 commit d3d7723
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Fields/Theme_Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
6 changes: 6 additions & 0 deletions inc/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

0 comments on commit d3d7723

Please sign in to comment.