-
Notifications
You must be signed in to change notification settings - Fork 865
Title and favicon #576
Comments
The |
Thanks @Aetles. I didn't know that. How about the favicon in the attachment page, you know why it won't display? |
The favicon on the attachment page (or on the admin page) will only show if it is placed in the root of your website (not in the theme folder)... |
Thanks @dantahoua for giving me an idea. However while I was googling wp+root+favicon, I found out that favicons can be inserted in the WP admin area on the site identity via this link - https://make.wordpress.org/core/2015/07/27/site-icon/. What I did was removed everything that involves favicons / icons in the header and then inserted the image in the customizer. The header looks cleaner and it solved my problem. |
FoundationPress does not support all the features of the Customizer and site icon is one of those. FoundationsPress has a hard coded path for the favicon, just look at line 18 in header.php: <link rel="icon" href="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/icons/favicon.ico" type="image/x-icon"> |
But the favicon appears and my site seems to be working fine now even without those link tags. I'm still using the FoundationPress based on Foundation 5 (haven't updated to FP6) with the latest version of WP. So it seems to be supporting it? EDIT: Also, the save to home bookmark on the iPhone also seems to be working now. Before, it didn't show the icon on the home button. |
Yeah, I wasn't totally clear before. Site Icons works without theme support, it says so right on the page that you linked:
But in order for that to work with FoundationPress you have to remove the hard coded favicon support that is currently in IMO FoundationPress should remove those lines and rely on Site Icons instead. (Also, most of what's in cleanup.php should be removed, but that's another story…) |
On the header.php, I cannot find where the <title> is but on the rendered page, the title is there. Where is this inserted. For example I want to have a title like this on my pages: Home - My Site.
Currently, its: Home | My Site.
I'm also wondering why in my attachments page (image.php template), it's not getting the site's favicon like the rest of the pages.
Where do I add this? How do I edit it?
The text was updated successfully, but these errors were encountered: