Support » Themes and Templates » Internet Explorer problem…

  • Website I am working on: horseartgallery.com

    Problem: logo doesn’t desplay right ONLY in internet explorer. I works fine in Safari, Firefox, Opera, Chrome.

    Ran validator check: results

    looks like there is a problem on line 317 with logo according to the validator:

    Line 317, Column 198: end tag for “img” omitted, but OMITTAG NO was specified
    …ds/2012/12/newhorseartgallerylogo31.jpg” alt=”Gallery” width=”” height=””>

    You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.

    Line 317, Column 63: start tag was here
    …ref=”http://www.horseartgallery.com/”><img src=”http://www.horseartgallery.com…

    I found the theme’s source code in header.php:

    <?php if ( of_get_option('of_logo') ) { ?>
                    <a>"><img src="<?php echo of_get_option('of_logo'); ?>" alt="<?php the_title(); ?>"  width="<?php echo of_get_option('logo-width'); ?>" height="<?php echo of_get_option('logo-height'); ?>"></a>
                    <?php } else { ?>

    [please remember to mark any posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code – the above code is already corrupted/broken by the forum’s parser]

    I don’t know enough about code to fix this. Can someone tell me what I need to change?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    These forums aren’t meant for commercial theme support, please contact your theme’s vendors for issues regarding their theme.

    Thanks for the warm welcome and help.

    Moderator or whatever please delete this thread since there is no help to be had here,
    Thanks so much.

    Michael

    (@alchymyth)

    Forum Moderator

    it is not the general policy to delete forum posts or topics – http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts

    Ok,

    Thank you.

    I fixed it, sort of…

    i changed:

    <a href="<?php echo home_url( '/' ); ?>"><img src="<?php echo of_get_option('of_logo'); ?>" alt="<?php the_title(); ?>" width="<?php echo of_get_option('logo-width'); ?>" height="<?php echo of_get_option('logo-height'); ?>"/></a>

    into:

    <a href="<?php echo home_url( '/' ); ?>"><img src="http://www.horseartgallery.com/wp-content/uploads/2012/12/horseartgallerylogo-150x150.png" width="150" height="150"/></a>

    So basically I broke the theme by removing the php queries and it works. I am in contact with the theme creator, I think it is the php queries for width and height which is breaking the code.

    Hope this helps someone else sometime.

    p.s. i fixed the validator error by adding one “/” in at the end :
    /></a>

    instead of
    ></a>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Internet Explorer problem…’ is closed to new replies.