Empty <li> tags when using g2_sidebargridblock

dpaule

Joined: 2003-10-07
Posts: 30
Posted: Wed, 2008-01-30 23:15

In the sidebar I've placed the wpg2sidebargrid widget <?php print g2_sidebargridblock('recentImage', 1, 125, 'Latest Design'); ?>, though it breaks the code by adding an empty <li></li> tag.

##########################

<!-- Added below two lines for gallery-->
<div id="wpg2content">
<div id="sidebar">
<ul>
<li>
</li>
<h2>
Latest Design
</h2>
<div class="wpg2sidebargrid-image">
<a href="http://www.CreativeCrib.com/v/book-cover-design/book-cover-design-LG.jpg.html" title="book-cover-design-LG">
<img src="http://www.CreativeCrib.com/gallery2/d/56-2/book-cover-design-LG.jpg?g2_GALLERYSID=c3fa9fb3528958b6c50e877c9a926f40" id="IFid1" class="ImageFrame_none" alt="book-cover-design-LG" longdesc="book-cover-design-LG" height="125" width="125">
</a>
</div>
<li id="pages">

##########################

Image is attached that shows the code a bit nicer.

Thanks

AttachmentSize
Clipboard01.jpg34.5 KB
 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-01-31 02:16

Actually no it does not, that sounds more like you have an empty <li> in your sidebar.php (or what ever your Wordpress theme calls it)

The function output everything starting from a div class="wpg2sidebargrid-image" and you can see that in the highlighted blue (nice screenprint btw)

If you are using the actual widget (not the function call which you have posted) then you can specify what html elements you want in the Widget configuration.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
dpaule

Joined: 2003-10-07
Posts: 30
Posted: Thu, 2008-01-31 03:07

You're right again! Thanks for your info!!