Favicon not loading due to div in head element
-
The site favicon is not appearing in the front-end of the site – only in wp-admin.
The cause seems to be the code
add_action('wp_head', 'spice_fse_script_header');
in functions.php, which inserts a <div> inside <head>, forcing the start of the <body> element and skipping any subsequent code in <head> (including favicon links).I believe this can be fixed just by replacing
wp_head
withwp_body_open
in the above line of code.
- The topic ‘Favicon not loading due to div in head element’ is closed to new replies.