<link rel="icon" type="image/x-icon" href="<?php echo base_url().'favicon.ico'?>">Project name</title>
I have placed favicon.ico in the root folder. But when trying to browse the page title shows the code instead with the entire link tag. Lost of ideas on what to do.
<link rel="icon" href="<?php echo base_url(); ?>favicon.ico"> <title>Project Name. </title>
Turn's out OP wrapped into <title></title>
, which causing it not working.
put your favicon.ico to your project root folder, then use href="favicon.ico"