Manchester Web Design | SquareNet Media
Single Blog Post

How to Add A Favicon To Your WordPress Website

by SquareNetMedia Web Developer

Posted on December 24, 2016 at 13:07 PM

Favicons, short for favorite icons, are a small but significant part of branding a website. They are used to display a 16×16 or 32×32 pixel image before the page title in your browser window. Favicons are also used for bookmarks in browsers and touchscreen devices. Favicons not only make your blog look more professional, but they also make it easier for people to find it in their long lists of bookmarks and favorites. Anyone can create a favicon and add it to their third-party hosted WordPress blog or website. It’s extremely very simple.

Fortunately, installing a favicon on your WordPress site is a piece of cake. And although there are plugins available that can do it for you, such a task definitely falls into the “you absolutely do not need to use a plugin for this” category. After all, you want to keep your site lean and mean.

Simply upload your favicon to website root folder and paste this code snippet in your functions.php file.

// add a favicon to your wordpress website
function sq2net_add_favicon() {
echo '';
}
add_action( 'wp_head', 'sq2net_add_favicon' );

If you have uploaded your favicon in your theme image folder then you can use this code snippet.

// add a favicon to your wordpress website
function sq2net_add_favicon() {
echo '';
}
add_action( 'wp_head', 'sq2net_add_favicon' );

In: Wordpress

About the Author

SquareNetMedia

We are a small team based in Manchester, UK and have been around for over 15 years. We are passionate about web design and development. We have experience with eCommerce, Wordpress, Magento, Search Engine Optimisation, Web Hosting, Google Analytics, HTML, jQuery and much more.

 

How to Auto Link Keywords in Post Content And Excerpt

Posted on Dec 24 2016 at 12:26 pm

If you are a blogger and make some cash from affiliate marketing then you probably [...]

Read More
Contact 7

Restricting Contact 7 to Only Load its CSS and JS on Selected Pages

Posted on Nov 26 2016 at 10:18 am

Contact 7 can manage multiple contact forms, plus you can customise the form and the [...]

Read More

Packaging Plugins With Your WordPress Theme Using TGM Plugin Activation Library

Posted on Nov 20 2016 at 1:28 pm

When you’re shipping your theme for sell, it’s often required to bundle the required plugins. [...]

Read More