plugin development – WordPress Favicon not Working For Images/Videos/PDFs


I am using WordPress with Neve theme, for my site, Favicon is working on posts/pages, but Favicons aren’t visible for JPG/PNG/Videos.

If I use the Theme Customizer and select the Favicon PNG image, it shows on all posts and images etc.

But I want to have different Favicon Images on different URLs.

I saw that Theme was adding the below code on my site in Head.

<link rel="apple-touch-icon"  href="">
<link rel="icon" type="image/png"  href="">
<link rel="icon" type="image/png"  href="">

this code was inserted wp_head to make it work.

It works perfectly on my posts and pages. For example the post How Does Elon Musk Manage all his Companies Effectively? the favicon is visible perfectly.

But if I Image from the save post The Image shows favicon as WordPress logo instead of my site logo.

How to make it WordPress logo programatically.

Aditya Agarwal 1 year 2021-09-05T05:30:23-05:00 0 Answers 0 views 0

Leave an answer