1.11M Members

Hide Broken images

 
0
 

i hired a developer to customize a wordpress template, it seem ok but when i use certain feature in the template
it show a small broken image above the main image, when i right click to open image in new tab it has this "Invalid src mime type:"

and i think its in the php of timthumb (/timthumb.php?src=/&w=0&h=0&zc=1&q=100)
is it possile to hide this that using its url?

ive found some scripts and i dont know if related
but this might help
this seem working but dont know how to modify the script to hide the url
using jquery

var link = $('a[href*="<a href="http:.../themes/template/scripts/timthumb.php?src=/&w=0&h=0&zc=1&q=100">anotherdomain/>"]').attr("href");

    <body>
    <img src="http://parkerbusinessplanning.com/wp/wp-content/themes/bitwork/scripts/timthumb.php?src=/&w=0&h=0&zc=1&q=100" />
    </body>`

heres another but not working

     $("img").error(function(){
                $(this).hide();
        });

i tried contacting the developer but im not getting any response :(

 
0
 

Looks like the image has no source file defined, but I cannot guess where you would need to change this.

 
0
 

Hi Julia,

Please let me know if this works for you:

$("img[src*='timthumb.php?src=/&w=0&h=0&zc=1&q=100']").hide()
You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article