-
AuthorPosts
-
May 17, 2021 at 9:31 am #1300666
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!
May 17, 2021 at 11:58 pm #1300840Hi 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,
NikkoMay 18, 2021 at 7:37 am #1300880Hi,
login detail now in private contentMay 18, 2021 at 11:15 am #1300940Hi 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,
NikkoMay 22, 2021 at 6:17 pm #1301760Hi Nikko,
if i google our domain “gruppenchalets” on a mobile i always see the wordpress favicon.
It looks that this script doesn’t change anythingMay 26, 2021 at 2:00 pm #1302417Hi,
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,
YigitMay 26, 2021 at 2:06 pm #1302421hi,
yes i removed the code because it doesn’t change anything.
In private content are the FTP Logins.
May 31, 2021 at 6:26 am #1303068Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.
