How to add a favicon.ico to a PHP website?

Reviewer Asked on November 11, 2019 in PHP,   Website.
Add Comment
1 Answer(s)
  1. Login into your cPanel.
  2. Go to the File Manager, Select your directory for your site (In this case the main domain public_html location) and Click Go.
  3. Upload the favicon to your server.
  4. Edit the source code that contains the <head> code of your site. The head section code should look similar to the snapshot to the right.
  5. Add the following line of code below the <title> tag.
    <link rel='shortcut icon' href='favicon.ico' type='image/x-icon' />

      

  6. Save the file and preview your site in your browser. You should see the favicon show in your browser.
Trainee Answered on November 11, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.