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/’;
}

Hi, I’m Matt. Here, I write about the web and how business and organisations can better connect with people. I created DedicatedWP (where I also write about working with WordPress).

Read more about me.

Read more articles on WordPress.

Or check out sitebyma.net.