Viewing 6 replies - 1 through 6 (of 6 total)
  • the validator does not like the <p> within the <a href...> tag.

    Thread Starter jfortenberry

    (@jfortenberry)

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

    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.

    Thread Starter jfortenberry

    (@jfortenberry)

    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.

    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

    Thread Starter jfortenberry

    (@jfortenberry)

    Thanks Chris, and great plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Simple Image Widget] Validation Issues’ is closed to new replies.