Support » Plugin: NGG Sidebar Widget » Display Thumbnail & Title Together

  • I’ve spent the last I don’t know how many hours trying to figure out how to show the thumbnail and the gallery name at the same time. I gave up looking for a simple solution and created a hack of my own.

    Basically, I copied the contents of the tpl.inner_no_thumb.html file and pasted it at the end of the code in the tpl.inner_thumb.html file and removed the extra at the end. Some styling will need to be done in CSS because the title inherited the styling from my main menu, but that’s not a huge deal.

    At any rate, the code will look like this when you’re done:

    <li class="menu-item">
    	<a href="{}" title="{=gallery.title}"><img src="{=image.url}"{=image.output_width_tag}{=image.output_height_tag} alt="{=gallery.title}" /></a>
    <a href="{}" title="{=gallery.title}">{=gallery.title}</a>

    This is such a great plugin, it’s just this is the one thing I think that’s left that’s needed.

    Hope this is helpful to anybody else who’s been tearing out their hair like I have.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Thumbnail & Title Together’ is closed to new replies.