That worked! Thank you, Mohammad!
Zee
(@laserjobs)
I found if you do not use the code in the link provided that it fixes the issue if you upload a logo using Appearance>Customize>Site Identity>Site Icon
Site Icon was implemented in WP 4.3
Hi Mohammad,
I’ve added your code to my functions.php file, and the icon shows perfectly: http://maxibonsplans.info/divers/amazon-outlet-les-produits-a-petits-prix/amp/
Despite this, when I try to validate with the Google tool at https://search.google.com/structured-data/testing-tool it says that the logo is missing.
If I look at the source code of my AMP page, the script type=”application/ld+json” section does not provide the following code:
"logo":{"@type":"ImageObject","url":"http:\/\/my-url-to-the-logo-32x32.png","height":32,"width":32}}
Is there something else I need to do?
Issue solved with the solution provided by Laserjobs. Thanks
Thanks Laserjobs. It worked