NGG Sidebar Widget
Display Thumbnail & Title Together (3 posts)

  1. EdeeLemonier
    Posted 2 years ago #

    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="{=gallery.link}" title="{=gallery.title}"><img src="{=image.url}"{=image.output_width_tag}{=image.output_height_tag} alt="{=gallery.title}" /></a>
    <a href="{=gallery.link}" 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.


  2. ds123
    Posted 2 years ago #

    thanks for this if we can get the author to add it as an option in the widget that would be perfect so we don't overwrite on upgrade

  3. Jeroen
    Posted 2 years ago #

    Great solution! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NGG Sidebar Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic