banner



How To Upload A Favicon To Your Website

How to Add together a Favicon to Your Website

Yous might come across the term favicon when it comes to website cosmos and evolution. But what is it exactly? Well, in this article, we'll be answering your question and showing yous how to add a favicon to your website. Let's become started!

Download eBook: Build Your First Website in nine Easy Steps

What is a Favicon, and Why is It Important?

Simply put, a favicon is your website logo that appears next to the meta championship on your browser tab. In other words, instead of showing a blank document icon on the browser, your website volition brandish your official website icon.

Almost websites usually use their logo every bit a favicon. If your website doesn't accept a logo, y'all can simply create one with the free logo maker. This way, your visitors will hands notice your website when they're opening a lot of tabs in a unmarried browser window. Plus, your site will expect much more professional.

Hostinger website's favicon

How to Add a Favicon to Your Website?

Pick one of two ways beneath to add a favicon to your website!

Let Browsers Automatically Generate the Icon

The easiest way to add together an icon to your site is by uploading information technology as a .png or .ico file from your hosting'due south File Manager. Follow these steps to practice then:

  1. Fix a square dimensioned paradigm in .png or .ico format for your website logo.

If you already have a .png file, use it. However, convert the image to .ico format using ConvertICo.com if you ever need to.

  1. Rename the .png or .ico epitome to favicon.

Most browsers automatically detect favicon.png and favicon.ico file located in your website directory as your website's icon. And then, you'll need no coding.

  1. Admission yourpublic_html folder by heading over to your hPanel, then File Manager -> Go To File Manager.

Uploading the faveicon.ico file to your wordpress directory

  1. Upload thefavicon.png or.ico file into yourpublic_html binder. Reload your website, and you'll see the favicon.

Upload a Regular Paradigm and Edit Your Theme'southward header.php File

Alternatively, if you lot have an image other than .png or .ico format (jpg, BMP, gif, etc.), you can apply it equally your website'due south icon equally well. Notwithstanding, you lot need to alter the header.php file on your currently used theme folder. To practise and then, perform these steps on your hPanel.

  1. Once you've got a square dimensioned image every bit your logo, caput over to File Director -> Go To File Manager -> public_html.
  2. Upload the image into your public_html binder.
    Uploading a jpeg image as a favicon

You may both keep the original proper noun of the image or rename information technology to favicon. It's recommended to rename the icon to distinguish information technology from other images.

  1. Go to thewp-content -> themes folder. And so, admission the theme binder yous're currently using.
  2. Open up theheader.php file and paste this post-obit syntax but before the end of the<head></head> tag:
<link rel="shortcut icon" type="image/jpg" href="/favicon.jpg"/>
Inserting code into the header.php file tp add favicon

Change the /jpg and /favicon.jpg parts co-ordinate to the format and the name of the image yous're about to use.

  1. Once you've saved your changes, the image should now display as your website'due south icon.

If you lot can't see the new favicon, clear your browser cache and restart your browser.

Conclusion

Every bit you can run across, having a favicon on your website is crucial. Not but does it brand your site distinguishable on browser tabs, but it also gives a professional person wait to your website.

Yous can add together it automatically past uploading a .png or .ico image named favicon to your public_html folder. Alternatively, you tin upload a regular image (jpg, BMP, gif, etc.) and modify the header.php file within your currently used theme folder.

Was this tutorial helpful? Leave a comment below!

Author

Linas started as a customer success agent and is at present a full-stack web developer and Technical Team Atomic number 82 at Hostinger. He is passionate about presenting people with top-notch technical solutions, but every bit much as he enjoys coding, he secretly dreams of condign a rock star.

How To Upload A Favicon To Your Website,

Source: https://www.hostinger.com/tutorials/how-to-add-favicon-to-website

Posted by: andersonobecam.blogspot.com

0 Response to "How To Upload A Favicon To Your Website"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel