WordPress.org

Ready to get started?Download WordPress

Forums

Simple Image Widget
[resolved] Validation Issues (7 posts)

  1. jfortenberry
    Member
    Posted 3 years ago #

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the validator does not like the <p> within the <a href...> tag.

  3. jfortenberry
    Member
    Posted 3 years ago #

    So isn't this a problem with the plugin? It adds the <p> tag automatically within the tag.

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    So isn't this a problem with the plugin?

    yes - but relative easy to remedy:

    edit simpleimage.php
    (/wp-content/plugins/simple-image-widget/simpleimage.php)

    find:

    <p><img src="<?php echo $options[$number]['image']; ?>" alt="<?php echo $options[$number]['alt']; ?>" /></p>

    remove the p tags.

  5. jfortenberry
    Member
    Posted 3 years ago #

    That worked! Thanks so much for your help. I accessed the file through the plugin editor in WordPress and removed the p tags. Hopefully this will be fixed on the next update so that it won't overwrite the change. I'm not sure why anyone would want to use the p tags for images.

  6. vickio
    Member
    Posted 3 years ago #

    Thanks for pointing this out. I've just updated the plugin to 2.0 and it no longer includes the p tags.

    This is a complete rewrite using the more modern widget framework, but functionally everything else should be the same.

    Chris

  7. jfortenberry
    Member
    Posted 3 years ago #

    Thanks Chris, and great plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic