Forums

[Plugin: Image Widget] Image widget prevents validation in xhtml 1.0 trans (4 posts)

  1. webmasterlistingarts
    Member
    Posted 2 years ago #

    When I try to validate my code I get the message:

    Line 173, Column 257: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

    …enter" /><p class="-description" ><p>SKP</p>

    From this line of output:

    <div id="widget_sp_image-5" class="widget widget_sp_image"><img src="http://www.listeningarts.net/skp/wp-content/uploads/2009/10/HeadshotSM-180x237.jpg" alt="" style="max-width: 180px;max-height: 239px;" class="aligncenter" /><p class="-description" ><p>SKP</p>

    I'm can't find where to fix this if anyone could help it would be very much appreciated.

    Thanks,
    Michael

    http://wordpress.org/extend/plugins/image-widget/

  2. HGU
    Member
    Posted 2 years ago #

    Same problem :

    Notice: Undefined index: classname in... /wordpress/wp-content/plugins/image-widget/image-widget.php on line 184

    Solution :
    image-widget.php :
    Line 205 :
    - echo '<p class="'.$this->widget_ops['classname'].'-description" >';
    + echo '<p class="'.$this->widget_options['classname'].'-description" >';
    Line 184 :
    - echo '<a class="'.$instance['classname'].'-image-link" href="'.$instance['link'].'" target="'.$instance['linktarget'].'">';
    + echo '<a class="'.$this->widget_options['classname'].'-image-link" href="'.$instance['link'].'" target="'.$instance['linktarget'].'">';

  3. Peter Chester
    Member
    Posted 2 years ago #

    HGU Thank you!!! I'm testing this out now and if it works i'll post an update right away.

  4. Peter Chester
    Member
    Posted 2 years ago #

    I've posted a fix to this in version 3.1.2. Please confirm and if it works, please mark resolved. thanks!!!

Topic Closed

This topic has been closed to new replies.

About this Topic