Adding Favicon to Genesis Child Theme

To display a site Favicon add the following to your child theme’s functions.php. Your favicon image should be around 180px by 180px. Remember to swap out your image’s own file path.

Add to functions.php

/** Add Custom Favicon */
add_filter( ‘genesis_pre_load_favicon’, ‘custom_favicon’ ); function custom_favicon( $favicon_url ) {
return ‘http://myblog.com/image-name.png/’;
}

Matt Angel

20230302 124214

Adding Favicon to Genesis Child Theme

To display a site Favicon add the following to your child theme’s functions.php. Your favicon image should be around 180px by 180px. Remember to swap out your image’s own file path.

Add to functions.php

/** Add Custom Favicon */
add_filter( ‘genesis_pre_load_favicon’, ‘custom_favicon’ ); function custom_favicon( $favicon_url ) {
return ‘http://myblog.com/image-name.png/’;
}