Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
March 9, 2015 at 6:37 pm #408338
Into header.php I find this:
<?php /* * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives * located in framework/php/function-set-avia-frontend.php */ if (function_exists('avia_set_follow')) { echo avia_set_follow(); } /* * outputs a favicon if defined */ if (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); } ?>
As for my other sites usually add this code to get the full support favicon on all devices:
<link rel="shortcut icon" href="http://********.com/favicon.ico" type="image/x-icon"> <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/favicon-48x48.png" sizes="48x48"> <link rel="icon" type="image/png" href="/favicon-64x64.png" sizes="64x64"> <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="/favicon-128x128.png" sizes="128x128"> <link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196"> <link rel="icon" type="image/png" href="/favicon-228x228.png" sizes="228x228"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" /> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" /> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" /> <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" /> <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" /> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" /> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-180x180.png" />
Can I put my code or this would be useless?
If the answer is yes, after which line to put it?- This topic was modified 9 years, 8 months ago by lock255.
March 9, 2015 at 9:19 pm #408464Hi lock255!
I’m not too familiar with iOS. Is this for when someone bookmarks your site on an iPhone?
It probably needs to go in the header so you could try adding this to the bottom of your functions.php file.
add_action( 'wp_head', 'enfold_customization_add_favicon_sizes' ); function enfold_customization_add_favicon_sizes() { ?> insert your code here <?php }
And then add your code in the correct spot.
Regards,
ElliottMarch 9, 2015 at 9:29 pm #408473Thanks I’ll try your code :)
March 10, 2015 at 5:44 am #408618March 11, 2015 at 8:58 pm #410095Sorry, but I have not Apple devices to do this test
March 11, 2015 at 11:24 pm #410176Hey!
Please post the link to your website and i will try it on my iphone
Cheers!
YigitMarch 11, 2015 at 11:40 pm #410193This reply has been marked as private.March 12, 2015 at 4:38 pm #410556Hey!
Yes, it did show up fine. Please see screenshot here – http://i.imgur.com/jyHcQvc.png
Regards,
Yigit -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.