Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have checked on a few other websites and on my local version when i open the pdf file my mini icon changes. How i can open the pdf file but the icon remains the default on my website
I found a solution. I will share it here if anyone needs it
Let's create a file called favicon.ico and add it to the index.php file the directory Magento is pointing to may have a cache and you need to delete it
Add favicon.ico to root directory of your folder. After adding it, favicon.ico will automatically show in PDFs.
Note- In magento, you need to upload favicon.ico in pub folder
Required, but never shown