Remove emoji scripts & styles to reduce http requests

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’ );


Forcing a ‘read more’ link on WordPress excerpts

add_filter( ‘excerpt_more’, function ( $more ) { return ”; } ); function custom_excerpt_filter( $text, $raw_excerpt ) { global $post; return $text . ‘… <a class=”read-more” href=”‘. get_permalink( $post->ID ) . ‘”>read more &raquo;</a>’; } add_filter( ‘wp_trim_excerpt’, ‘custom_excerpt_filter’, 10, 2 );