Hi,
i would like to have my favicon on IPhone and IPad too, so i found and tried this solution:
function add_custom_code(){
?>
<link rel=”apple-touch-icon” href=”https://www.gruppenchalets.com/wp-content/uploads/2020/12/gruppenchalets-favicon.png”>
<?php
}
add_action(‘wp_head’, ‘add_custom_code’);
I put this code in my child’s functions.php – but it makes an <error on my site.
Is there maybe another solution?
Thank you for helping!
Hi Stefan,
The code you posted should work.
Can you give us temporary admin access? so we can try to inspect why it’s causing error.
Please post the credentials in private content.
Best regards,
Nikko
Hi,
login detail now in private content
Hi Luisgasser,
Thanks for giving us admin access.
I have renamed your functions.php to functions_old.php and created a new one, then added this code:
function add_custom_code(){
?>
<link rel="apple-touch-icon" href="https://www.gruppenchalets.com/wp-content/uploads/2020/12/gruppenchalets-favicon.png">
<?php
}
add_action('wp_head', 'add_custom_code');
Please review your site.
Best regards,
Nikko
Hi Nikko,
if i google our domain “gruppenchalets” on a mobile i always see the wordpress favicon.
It looks that this script doesn’t change anything
Hi,
Have you removed the code from functions.php file? I cannot see it in source code.
If you have, could you please post FTP logins here privately as well so we can try adding it?
Best regards,
Yigit
hi,
yes i removed the code because it doesn’t change anything.
In private content are the FTP Logins.
Hi Luisgasser,
Thanks for providing us FTP access and we apologize for the delayed response.
I have checked the functions.php file and it’s empty, I have added the code again and it’s working properly.
I have posted a screenshot in private content showing that code is being added properly.
Best regards,
Nikko