WordPress.org

Ready to get started?Download WordPress

Forums

Removing link from thumbnail? (8 posts)

  1. jwswordpress
    Member
    Posted 3 years ago #

    Hi, I can't seem to get these thumbnails to not link to a larger version. The mouseover effect is correct but I don't want people to be able to click on the thumbnail. Should be an easy fix. Thanks for any help

    My Site

  2. govpatel
    Member
    Posted 3 years ago #

    what are using to display images on the page.

  3. jwswordpress
    Member
    Posted 3 years ago #

    I'm using WP Table Reloaded and a script by dynamic drive: Script

    the code for the thumbnail is in one cell of WP Table Reloaded:
    <a href="http://renewableassociates.com/wordpress/wp-content/uploads/2011/02/Lemelson-Front-f.jpg" rel="enlargeimage" rev="targetdiv:loadarea"><img src="http://renewableassociates.com/wordpress/wp-content/uploads/2011/02/Lemelson-Front-tn.jpg" alt="" title="Lemelson Front" width="94" height="94" size-thumbnail wp-image-413" /></a>

  4. govpatel
    Member
    Posted 3 years ago #

    <a href="http://renewableassociates.com/wordpress/wp-content/uploads/2011/02/Lemelson-Front-f.jpg" rel="enlargeimage" rev="targetdiv:loadarea">and take out </a> from end

    this part is the link part try and take out of one of images see is your mouseover works

  5. jwswordpress
    Member
    Posted 3 years ago #

    The mouseover effect still works but if I put text in there the text links to the image. The idea was to have thumbnails as selectors and larger image being the display area.

    Is there a way to disable links in a WP Table Reloaded cell?

  6. govpatel
    Member
    Posted 3 years ago #

    So you want to the image to open on the same page when clicked instead of on new page.

    Have you tried to use Nextgen gallery plugins I thing that will work for instead of coding it.

    Check this url

    http://nextgen-gallery.com/templates/carousel/

  7. jwswordpress
    Member
    Posted 3 years ago #

    I like the script because its simple. I have tried the nextgen gallery and there were to many things that I wanted to change. The images are also preloaded in the script so the page does not refresh every time you click an image (at least that's what it does in that example) Thanks for your help. I should probably ask the people who wrote the script in the first place... :)

  8. jwswordpress
    Member
    Posted 3 years ago #

    Easy fix. Just add onclick="return false" at the end of href.

Topic Closed

This topic has been closed to new replies.

About this Topic