WordPress.org

Ready to get started?Download WordPress

Forums

Copygram widget
HTML Rewrite (1 post)

  1. armahillo
    Member
    Posted 1 year ago #

    Would it be possible to re-write the HTML and CSS? It is not very semantic.

    For one, instead of using nested DIVs, it should really use a UL+LI, then style it with CSS. Like this:

    <div id="copygram-widget-2" class="widget widget_copygram-widget">
    <h4 class="widgettitle">My Instagrams</h4>
    <ul><li>
    <a href="...filename.jpg" target="_blank" style="width:150px;height:150px;">						<img src="...filename.jpg" style="width:150px;height:150px;" alt="description"/>
    <p>description</p>
    </a>
    </div>
    </div></div>

    The CSS could be cleaned up accordingly. This would greatly help semantic readability.

    Also -- the "alt" properties are not escaped correctly, so a double-quote that was included in my description ends up prematurely breaking the description.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags