WordPress.org

Ready to get started?Download WordPress

Forums

Popular Widget
invalid HTML - p inside span (1 post)

  1. Jon Scaife
    Member
    Posted 2 years ago #

    When I use this plugin it causes a validation failure because it generates P tags inside SPAN tags. Please could you fix this when you next update. I have successfully fixed the problem by replacing the span tags with div tags as detailed below...

    On lines 114, 174, 237, 288
    replace: $output .= isset($image) ? $image.'<span class="pop-overlay">':'<span class="pop-text">';
    with: $output .= isset($image) ? $image.'<div class="pop-overlay">':'<span class="pop-text">';

    On lines 121, 182, 246, 295
    replace: $output .= '</span></a><div class="pop-cl"></div></li>'; $count++;
    with: $output .= '</div></a><div class="pop-cl"></div></li>'; $count++;

    This doesn't seem to have had any negative side effects but I haven't checked all configurations for any css errors

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic