• Hi,
    I’m using the Twenty Eleven theme and thanks to you guys have been tweaking it to look perfect. The problem is that when I use a full width featured post image on the front page (the one which covers the entire page width) it doesn’t show up on IE8 instead leaving a blank space.

    Is this a known issue?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    The problem is not with add code to autoslide. The problem is with the method. In original code, css fade is used. IE8 and IE7 have problem with css fade. So after try many solutions, I decided to stop with fade in IE, in other browsers continues. I change the code to:

    (function($) {
    	$(document).ready( function() {
      $('.feature-slider a').click(function(e) {
    
    		if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
     var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
     if (ieversion>=8)
    
    	        $('.featured-posts section.featured-post').css({
    	            opacity: 1,
    	            visibility: 'hidden'
    	        }); }
    else
     			$('.featured-posts section.featured-post').css({
    	            opacity: 0,
    	            visibility: 'hidden'
    	        });
    
    	        $(this.hash).css({
    	            opacity: 1,
    	            visibility: 'visible'
    	        });
    	        $('.feature-slider a').removeClass('active')
    	        $(this).addClass('active');
    	        e.preventDefault();
    	    });
    	});
    	var current=1;

    If browser is IE I put the start opacity to 1 like the second. So It doesn′t have any animation, only show and hide the image. To resolve the problem with black borders (with PNG and Gif too) I used it

    function fixPNGs(){
      if(jQuery.browser.msie && jQuery.browser.version < 9){
     var i;
     //alert(document.images.length);
     for(i in document.images){
       if(document.images[i].src){
      var imgSrc = document.images[i].src;
      if(imgSrc.substr(imgSrc.length-4) === '.png' || imgSrc.substr(imgSrc.length-4) === '.PNG'){
      document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='crop',src='" + imgSrc + "')";
      }
       }
     }
      }
    }

    It not the perfect solution, because in the second loop, I don′t know why, the first imagem show with black borders. I use PNG and GIF with background transparent.

    Thread Starter realepicurean

    (@realepicurean)

    Almost. I tried it now, image fade perfect but text has problem yet. The second text overlay the first without any fade. This in IE 8. But It is some advance. We are going almost to the point…:)

    Hi,
    Can anybody let me know what to do with file diff.txt from ticket 18024 linked above ? Any help is welcome, as I’m an absoulte beginner with WP. Thanks.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘[Twenty Eleven] Featured post image not showing in IE8’ is closed to new replies.