WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. EdeeLemonier
    Member
    Posted 1 year 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>
    </li>

    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.

    http://wordpress.org/extend/plugins/ngg-sidebar-widget/

  2. ds123
    Member
    Posted 1 year 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
    Member
    Posted 7 months ago #

    Great solution! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic