• Alazay

    (@alazay)


    Hey Guys,

    I have a little thumbnail error on my post pages that only shows up in IE and Chrome, but not in Firefox.

    On the single post pages (like this one: https://www.thetrailerhome.com/2011/03/10/fast-five-trailer-review) there is a small thumbnail to the right of the embedded video.

    I’ve located the offending code in single.php:
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/post-images/<?php $key=”image”; echo get_post_meta($post->ID, $key, true); ?>” alt=”” border=”0″ class=”image” />

    I tried deleting that whole line and the site seems to work fine.

    Here are my questions:
    1. Does anyone what the purposed of that line is?
    2. Is there a risk deleting it? If so, what is the alternative?
    3. Why was this only causing an error in IE and Chrome and not firefox?

    Thanks!
    Al

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    1.
    the line is supposed to show an image, whose image name would need to be entered into a custom field ‘image’ of the post;
    have you entered this custom field value for the linked post?

    2.
    no – just no image showing. (does the theme preview show an image in this position?)
    (a better programming style might have taken precautions for an empty custom field or missing image, to avoid this kind of error in some browsers)

    3.
    IE insists on marking a missing image with the square and red cross – firefox (and other browsers) just leave the spot empty.

    Thread Starter Alazay

    (@alazay)

    Thanks alchymyth,

    That makes sense. It must be to put an image there, but I embed video instead.

    I will delete that line.

    Al

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘3.1 Issue In IE and Chrome’ is closed to new replies.