Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

[SOLVED] Favicon and Image location


  #1  
Old Jan 16, 2014, 12:02 PM
tlck9
 
151 posts · Aug 2010
Hi All

favicon's I can get it to view properly on Chrome, but my customer cant see it on Chrome, IE or Firefox, even after removing cache.

When I try and view
http://mysite/wp-content/themes/atah...on/favicon.ico
it tells me there is a 403 Error - No default document

I added an image to this folder and could view it fine
http://mysite/wp-content/themes/atah...favi-500kb.jpg

I have searched and carried out some of the actions, including updating the functions.php file, saved the relevant ATO pages, eg header and footer

But cannot seem to get it to work

Any ideas
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2014-01-16 at 17.03.56.png
Views:	1462
Size:	55.2 KB
ID:	2478  

Last edited by tlck9; Jan 17, 2014 at 03:56 AM.
  #2  
Old Jan 16, 2014, 12:17 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
What version of Atahualpa are you running. You should see and "Image Location" selection right above "Favicon"
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jan 16, 2014, 12:59 PM
tlck9
 
151 posts · Aug 2010
Have just upgraded to 3.7.13 but still cant see it, will refresh and reboot the browser

Can now see the image location on ATO, thank you, rebooting and it is now there. However the favicon issue is still ongoing

Last edited by tlck9; Jan 17, 2014 at 03:57 AM.
  #4  
Old Jan 17, 2014, 03:55 AM
tlck9
 
151 posts · Aug 2010
On the favicon, I have a permission of 755, I have changed the image location to ata-images in the Wp-content folder, checked that I can view other images in that folder okay, which I can, so the file names are fine.

However I cannot see the .ico - size is 1148b or 4kb this is located in the ata-images folder

Any more ideas why I can see this in IE or firefox and on windows cant view it in chrome
  #5  
Old Jan 17, 2014, 04:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you clear the browser caches? What is the url?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jan 17, 2014, 04:55 AM
tlck9
 
151 posts · Aug 2010
integra-associates dot com

Yes have tried clearing down the cache on firefox. On my mac I can see the ico (in chrome), but not on firefox, client is saying he cant see it on any of his machines.
  #7  
Old Jan 17, 2014, 05:15 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
when I try to view the favicon in a browser window using
HTML Code:
http://www.integra-associates dot com/wp-content/ata-images/favicon.ico
(using a '.' in place of the 'dot') I get an error in any browser I try.

did you make sure when you created teh at a-images folder to give it permission of 755?
(Folders should have 755, files should have 644 - see this)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Jan 17, 2014, 05:55 AM
tlck9
 
151 posts · Aug 2010
Thanks Juggledad for taking a look

I have a 755 on both the folder ata-images and also 755 on the actual file.

I have checked I can access the ata-images file, see below, this image of the email icon comes up fine, I have also swapped out my own ico file for a default one and still get that error.

wp-content/ata-images/email.png

Could this be something to do with hosting?
  #9  
Old Jan 17, 2014, 05:58 AM
tlck9
 
151 posts · Aug 2010
Juggledad....you are a genius....you got me thinking about this and I've solved it.

On the codex for wordpress, I have followed their advice about security, having had one of my sites hacked. I had disallowed various types of files.

I checked the .htaccess file and added in ico and now it is visible!!!!

Thanks, what you did made me realise it wasnt a silly mistake but something blocking the path, however jpg worked why didnt ICO's

but.....it hasnt solved it for my clients even after removing cache and restarting browser

Last edited by tlck9; Jan 17, 2014 at 10:07 AM.
  #10  
Old Jan 17, 2014, 10:06 AM
tlck9
 
151 posts · Aug 2010
ON windows machines this hasnt solved the problem....even after removing the cache, restarting the browser and PC....so any ideas

Cant get it work on IE or Chrome

Can anyone tell me what they are seeing? A union jack or a blue box?

Last edited by tlck9; Jan 17, 2014 at 10:13 AM.
  #11  
Old Jan 17, 2014, 10:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well in Safari on a mac, if I put
HTML Code:
http://www.integra-associates dor com/wp-content/ata-images/favicon.ico
in the address bar I see the image - a blue square with a black dot in the upper right and there is a union jace in the favicon location HOWEVER if I go to the site I just get the world as the favicon

Go back to basics. Try renaminig your .htaccess to .htaccessx and look at the parent folder to see if there is anything it it's .htaccess that could cause an issue.

Remember htaccess files are cumulative and if you have
folder A
--sub folder B
----subfolder C
and you are running from 'C' it's htaccess is applied then 'Bs htaccess overrides it and 'A's overrides both (doesn't replace, just overrides a similar rule in the child htaccess and adds in any extra rules)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 21, 2014 at 05:08 AM.
  #12  
Old Jan 21, 2014, 04:14 AM
tlck9
 
151 posts · Aug 2010
Hi Juggledad, I have now done this, in fact deleted the other htaccess, I have found that the blue logo is showing on Mac's but not on Windows.

Can you PM me about some paid support on this please?
  #13  
Old Jan 21, 2014, 07:01 AM
tlck9
 
151 posts · Aug 2010
from the header.php

Should
$imgdir = get_template_directory_uri() . '/images/favicon/';

be

$imgdir = get_template_directory_uri() . '/ata-images/favicon/';

??

if ($bfa_ata['favicon_file'] != "") {
if($bfa_ata['images_root'] == "atahualpa") {
$imgdir = get_template_directory_uri() . '/images/favicon/';
} else {
// at this point the images_root is 'wp-content'
if(!isset($bfa_ata['ata_images_dir'])
OR ($bfa_ata['ata_images_dir'] == '') ) {
$imgdir = content_url() . '/ata-images/';
} else {
$imgdir = content_url() . '/' . $bfa_ata['ata_images_dir'] . '/';
}
}
?><link rel="shortcut icon" href="<?php echo $imgdir. $bfa_ata['favicon_file']; ?>" />
  #14  
Old Jan 21, 2014, 07:31 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That code is correct, that code checks to see where you have chosen to store the image and points it to the correct location.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #15  
Old Jan 21, 2014, 07:45 AM
tlck9
 
151 posts · Aug 2010
I'm still showing the union jack on the wordpress dashboard pages, I found this but wasnt sure if this would break Atahualpa by placing it in the functions.php file as its supposed to use the main favicon item in the wordpress backend

function pa_admin_area_favicon() {
$favicon_url = get_bloginfo('url') . '/favicon.ico';
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
}

add_action('admin_head', 'pa_admin_area_favicon');
  #16  
Old Jan 21, 2014, 07:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Yes, that is a known issue see http://forum.bytesforall.com/showthread.php?t=21241
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #17  
Old Jan 21, 2014, 08:10 AM
tlck9
 
151 posts · Aug 2010
I'm not seeing the code:

function pa_admin_area_favicon() {
$favicon_url = get_bloginfo('url') . '/wp-content/themes/atahualpa/images/favicon/6-favicon.ico';
echo '
<link rel="shortcut icon" href="' . $favicon_url . '" />';
}
add_action('admin_head', 'pa_admin_area_favicon');

in the bottom of the functions.php

$bfa_ata_version = "3.7.13";
  #18  
Old Jan 21, 2014, 08:54 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Then you must have already removed it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #19  
Old Jan 21, 2014, 09:37 AM
tlck9
 
151 posts · Aug 2010
Finally, unless I'm proved wrong I now have the favicon showing in IE, Chrome in Windows and Firefox

Using the following, placed in the header.php
<link href="/favicon.ico?" type="image/x-icon" rel="shortcut icon">
<link href="/ata-images/favicon.ico?" type="image/x-icon" rel="shortcut icon">
<link rel="shortcut icon" href="http://www.mysite.co.uk/favicon.ico"/>
<link rel="shortcut icon" href="http://www.mysite.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://mysite.com/favicon.ico" type="image/x-icon">
<link rel="icon" href="http://mysite.com/favicon.ico?" type="image/x-icon">
<link rel="icon" href="http://mysite.com/favicon.ico">
<link rel="shortcut icon" href="http://mysite.com/favicon.ico" type="image/x-icon">

and in the ATO/Add HTML in the header part

<link href="/favicon.ico?" type="image/x-icon" rel="shortcut icon">
<link href="/ata-images/favicon.ico?" type="image/x-icon" rel="shortcut icon">
<link rel="shortcut icon" href="http://www.mysite.co.uk/favicon.ico"/>
<link rel="shortcut icon" href="http://www.mysite.com/favicon.ico" type="image/x-icon">

Not sure which ones are doing the trick in IE - but if I delete a couple of the different ones, its stops working.....I could spend a bit longer on it, deleted one at a time but I've lost the will to live, so I'm leaving it as it is - as its working [yippee]

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with favicon and new image location SharonJ New Versions, & Updating 14 Mar 11, 2015 12:40 PM
conditional header image code location jrobie23 New Versions, & Updating 5 Jun 5, 2013 05:11 PM
Changing the header image location in Atahualpa Kevin Grenier New Versions, & Updating 7 Dec 12, 2012 04:09 PM
Is there a way to customize the location of image directory flyboy Header configuration & styling 1 Jul 2, 2011 12:51 PM
favicon/header image code showing instead of images...wlwmanifest.xml? cocola72 Header configuration & styling 8 Apr 8, 2010 09:34 AM


All times are GMT -6. The time now is 12:11 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.