Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #516165

    Good Morning,

    I was just running a speed test and backup on one of my sites and it is giving me a 404 error for a missing image file.

    The code that is generating the error appears to be a css ie8 fix for some background container.

    I have checked the page and this css style code is being added even on pages where this image (with correct domain url) has not been added.

    I have checked in the advanced layout builder and removed and reattached all color section backgrounds.
    I have also reattached the correct domain image into the full width slider.

    <!--[if lte IE 8]>
    			<style type="text/css">
    			.bg_container {
    			-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://localhost/wp-content/uploads/2015/01/IMG_0908-1500x732.jpg', sizingMethod='scale')";
    			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://localhost/wp-content/uploads/2015/01/IMG_0908-1500x732.jpg', sizingMethod='scale');
    			}
    			</style>
    			<![endif]-->
    
    #516785

    Hey pbennion!

    Thank you for using Enfold.

    It is a fullscreen background fix for IE browsers. You can just ignore the error. If you want to remove it, edit the footer.php file:

    if(isset($avia_config['fullscreen_image']))
    		{ ?>
    			<!--[if lte IE 8]>
    			<style type="text/css">
    			.bg_container {
    			-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale')";
    			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale');
    			}
    			</style>
    			<![endif]-->
    		<?php
    			echo "<div class='bg_container' style='background-image:url(".$avia_config['fullscreen_image'].");'></div>";
    		}

    Regards,
    Ismael

    #518493

    Good Morning,

    Hey thanks for the reply.

    My concern was that the src for the image link is http:// localhost/wp -content/
    Instead of the actual web domain.

    Can you think of why this would be our how can fix so it will link to a valid image file and therefore work on ie8?

    I haven’t come across this type of error in any other endold site made for clients.

    #519091

    Hi!

    I don’t know for sure if this is going to work but try to regenerate the thumbnails. Use this plugin: https://wordpress.org/plugins/force-regenerate-thumbnails/

    Regards,
    Ismael

    #519161

    Good Afternoon,

    Thank you for the suggestion to recreate the thumbnails this was not causing it but it led me to the problem.

    When logged into my admin area I noticed that I was still getting the 404 image not found error.

    Looking at page source I could see that it was in the Enfold Theme Options under Custom background Image for Boxed Layout

    However as I am using the stretched layout I had not look closer to realise that the image link was still there.

    After changing to Boxed, removing the image and changing back to Stretched it is all fixed.

    Thanks again for great support!

    #521422

    Hi!

    Great! Glad you figured that out. :)

    Regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘bg_container IE 8 Css Error’ is closed to new replies.