-
AuthorPosts
-
April 17, 2015 at 10:47 am #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,
TjaardApril 19, 2015 at 8:23 am #430834Hi 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,
IsmaelApril 19, 2015 at 6:04 pm #430904Hello 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
April 19, 2015 at 7:15 pm #430916Hi!
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,
YigitApril 25, 2015 at 8:55 am #434640Yigit,
Thanks for your information.
Tjaard
April 27, 2015 at 5:17 am #435005 -
AuthorPosts
- You must be logged in to reply to this topic.