Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #430217

    Hello,

    I would like to add an Apple touch icon for a website so users can bookmark the site with an icon of the site.
    I created the icons and uploaded them to the root of the website.

    Now I have to place the link in the head of the page:
    <link rel=”apple-touch-icon” sizes=”57×57″ href=”apple-touch-icon-iphone.png” />
    <link rel=”apple-touch-icon” sizes=”72×72″ href=”apple-touch-icon-ipad.png” />
    <link rel=”apple-touch-icon” sizes=”114×114″ href=”apple-touch-icon-iphone-retina-display.png” />
    <link rel=”apple-touch-icon” sizes=”144×144″ href=”apple-touch-icon-ipad-retina-display.png” />

    Is there an easy way to add this code to the Enfold template?
    Could this also be a feature request for the template?

    Best regards,
    Tjaard

    #430834

    Hi TjaardHeikens!

    Thank you for using Enfold.

    Use the wp_head function in the functions.php file:

    add_action('wp_head', 'ava_add_your_stuff');
    function ava_add_your_stuff() {
        ?>
        <link rel="apple-touch-icon" sizes="57×57" href="apple-touch-icon-iphone.png" />
        <link rel="apple-touch-icon" sizes="72×72" href="apple-touch-icon-ipad.png" />
        <link rel="apple-touch-icon" sizes="114×114" href="apple-touch-icon-iphone-retina-display.png" />
        <link rel="apple-touch-icon" sizes="144×144" href="apple-touch-icon-ipad-retina-display.png" />
        <?php
    }

    Regards,
    Ismael

    #430904

    Hello Ismael,

    Thank you for your support.
    One question. If I have an update of WordPress, is it likely that this file is updated and my changes are gone?

    Is it an idea to adapt the template so that it is easier to add the apple touch icons?

    Best regards

    Tjaard

    #430916

    Hi!

    You can use a child theme to avoid that – http://kriesi.at/documentation/enfold/using-a-child-theme/
    You can download pre-built child theme here – http://kriesi.at/documentation/enfold/downloads/

    Best regards,
    Yigit

    #434640

    Yigit,

    Thanks for your information.

    Tjaard

    #435005

    Hi!

    Glad we could help, please let us know if you should have any more questions.

    Cheers!
    Rikard

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