WordPress.org

Forums

Internet Explorer problem... (6 posts)

  1. pianopraze
    Member
    Posted 2 years ago #

    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!

  2. Andrew
    Forum moderator
    Posted 2 years ago #

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

  3. pianopraze
    Member
    Posted 2 years ago #

    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.

  4. Michael
    Forum Moderator
    Posted 2 years ago #

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

  5. pianopraze
    Member
    Posted 2 years ago #

    Ok,

    Thank you.

  6. pianopraze
    Member
    Posted 2 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic