Skip to content

Instantly share code, notes, and snippets.

View el-presidente's full-sized avatar

Søren Sohl el-presidente

View GitHub Profile
/* Marco, add all this to your child theme's functions.php file */
/* Bye 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' );
/* ...so sad */
/* Lets really optimize this js hooplah */
@wpspeak
wpspeak / functions.php
Last active August 4, 2019 06:58
Remove 'You are here' texts in Genesis Framework breadcrumb
<?php
//* Remove 'You are here' texts in Genesis Framework breadcrumb
add_filter( 'genesis_breadcrumb_args', 'afn_breadcrumb_args' );
function afn_breadcrumb_args( $args ) {
$args['labels']['prefix'] = '';
return $args;
}
add_filter( 'genesis_breadcrumb_args', 'wpsites_customize_breadcrumbs_genesis' );
/**
* Remove You Are Here and Customize Breadcrumbs Genesis
*
* @author Brad Dalton
*
* @Link http://wpsites.net
*/
function wpsites_customize_breadcrumbs_genesis( $args ) {
$args['home'] = 'Home';
@Zodiac1978
Zodiac1978 / .htaccess
Last active March 15, 2024 08:29
Make your Website faster - a safe htaccess way
#
# Sources:
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites
# http://codex.wordpress.org/Output_Compression
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/
# http://gtmetrix.com/configure-entity-tags-etags.html
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress
# https://andreashecht-blog.de/4183/