Logo Not Displaying in IE
-
I’ve seen a couple of posts on this topic but as a non-programmer the solutions suggested are a little over my head. Is there an easy way to address the logo not displaying on IE? I am using Network Solutions to host my WordPress site so I only have access to customize in the Dashboard menu.
-
Which version of IE? Link to site?
I’m using IE 10.
Here are the print screens using IE10 and Firefox. Note that in IE it does recognize something is there but it doesn’t display it.
IE10: https://www.ncmadulles.org/?p=1572
Firefox: https://www.ncmadulles.org/?p=1573Questions to try to pin it down:
Does the logo show with the parent theme active?
Can you see the logo here in IE10?
Does it work if you use a jpg instead?Which were the solutions you saw? If they work, I can try to explain them better for you.
Thanks for your help. Here are my answers:
1. The logo doesn’t show with the parent theme or child theme.
2. I’ll answer this tomorrow when I can access a PC with IE10.
3. I’ve tried both jpg and png and neither one works. I resized the png file myself instead of having the theme do it thinking that might work. It didn’t.Here are the posts I’ve found on this topic:
https://www.ads-software.com/support/topic/logo-does-not-show-in-ie?replies=11
https://www.ads-software.com/support/topic/ie-logo-permanent-fix?replies=5I can see the logo in the link you provided.
Interestingly enough, I have checked with a few people who have IE11 and they can see the logo. Having said that I know others can’t see it because they told me. I have not confirmed which version of IE they are running.
I have asked around and it looks like people with IE8, 9, and 10 cannot see the logo. Everyone I have asked with IE 11 (about 5 people) can see it. Firefox and Chrome display it; Safari as well.
Could you try what d4z_c0nf suggested at the end of here: https://www.ads-software.com/support/topic/ie-logo-permanent-fix?replies=5 and report back?
I don’t know where to put this code? I don’t have the ability to FTP files. I can only make changes via the WordPress dashboard.
We can talk you through tracking the problem down, but you really need FTP access or a file manager access through your control panel. Otherwise, you risk making a mistake and not being able to get your site up again from behind the scenes.
Note that having FTP access is a good idea anyway, notwithstanding this problem. You may need it at some point in the future.
I suggest you contact your host to find out how to access your site via FTP (you’ll need a password–look in the documentation you already have) and then download a program such as FileZilla.
The package I have from Network Solutions does not come with FTP capabilities.
I am not a programmer nor do I fully understand all the coding that goes on behind the scenes to build a professional website. That is why I chose to use WordPress and themes. Given I am not the only one who has this problem, why doesn’t the theme developer make the fix and update the theme accordingly? Will the fix “break” someone else’s site that isn’t having this problem?
I’m having the same issue with EI9 not displaying the logo. I tried copying the code suggested by Electric Feet above into my functions.php, but it caused an internal server error. Where are we supposed to paste the code?
For mshingledecker, I’m a new WP user as well and file transfers aren’t that difficult. Your host support should be able to tell you how to access it. FileZilla is a free download and is not unlike the Explore option on your computer for managing and transfering files.
Sorry about that. The line numbers have changed in the meantime. If you’re running version 3.1.20 of Customizr then the line numbers are 140-164 inclusive.
And there was a typo in d4z_c0nf’s code. The exact code should be:
$logo_size = ''; //gets height and width from image, we check if getimagesize can be used first with the error control operator if ( @getimagesize($logo_src) ) { $logo_size = getimagesize($logo_src)[3]; } ?> <div class="<?php echo $logo_class ?>"> <?php do_action( '__before_logo' ); printf( '<a class="site-logo" href="%1$s" title="%2$s | %3$s"><img src="%4$s" alt="%5$s" %6$s %7$s /></a>', apply_filters( 'tc_logo_link_url', esc_url( home_url( '/' ) ) ) , apply_filters( 'tc_site_name_text', __( esc_attr( get_bloginfo( 'name' ) ) ) ), apply_filters( 'tc_tagline_text', __( esc_attr( get_bloginfo( 'description' ) ) ) ), $logo_src, __( 'Back Home' , 'customizr' ), $logo_size, ( 1 == $logo_resize) ? sprintf( 'style="max-width:%1$spx;max-height:%2$spx"', apply_filters( '__max_logo_width', 250 ), apply_filters( '__max_logo_height', 100 ) ) : '' );
Note that this is only a test, not necessarily a resolution. I know that d4z_c0nf’s code (and thinking!) is better then mine, hence my request to see if his code works first.
I tried the code above in my functions.php. I’m still not getting the logo in EI, but it messed up pages other than the home page–made them smaller and pulled left. I took it out again.
Ah, I see. No, not in functions.php. This is an edit of a core file to try to find out where the bug is. The file to change is class-header-header_main.php in the \inc\parts folder (I realise only now that this was mentioned only at the top of that thread).
You need to copy the original class-header-header_main.php somewhere safe (on your PC, not in the server’s folder (where a second copy could mess things up)). Then modify those lines with the above.
If that doesn’t work, then another possibility is as follows:
– Put class-header-header_main.php back together again;
– Comment out lines 141-143, so they become:// if ( @getimagesize($logo_src) ) { // list( $width, $height ) = getimagesize($logo_src); // }
– Then modify lines 138 and 139 so that they contain the exact dimensions of your logo. So, for example, if your logo is 220px wide and 120px wide, lines 138 and 139 would be:
$width = '220'; $height = '120';
In either of the above scenarios, if your logo displays, it will give us an important clue as to what is going wrong.
After you’ve finished, report back and put the file back to its original state again.
Thanks for helping!
- The topic ‘Logo Not Displaying in IE’ is closed to new replies.