I place my favico
favico.ico on the root directory of my site.
Add the following code to
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
However, the favicon is ONLY appeared on the homepage? How can I make it effective on the whole site?
EDIT: I set the
href as the abosolute path and it works, seeing below:
<link rel="shortcut icon" href="http://example.com/favicon.ico" />