Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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”&gt;
    <?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!

    #1300840

    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

    #1300880

    Hi,
    login detail now in private content

    #1300940

    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

    #1301760

    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

    #1302417

    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

    #1302421

    hi,

    yes i removed the code because it doesn’t change anything.

    In private content are the FTP Logins.

    #1303068

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.