WordPress.org

Support

Support » Plugins and Hacks » [Resolved] second link to activate thickbox

[Resolved] second link to activate thickbox

  • Hi all,

    I am looking for a way to activate a thickbox via an extra button on a page. Preferably this should be a general button.

    The exact situation is like this:
    I have a single picture that opens a larger version or a whole gallery in a thickbox. To make it more clear there is more to see I want to add a button that activates the thickbox. At the momement I just make a link to the (first) image with the tickbox class en the gallery rel. There are to problems with this solution:
    1.it requires a lot of manual linking
    2.it ads an extra version of the specific image to the gallery without description

    The live example http://www.jurisverbeelding.nl/foto/reportage/bo-kuylenburg (the button is the arrow with text “Bekijk project”)

    Is there a way to activate any thickbox on a page with a general button?

    Thanks

Viewing 1 replies (of 1 total)
  • Hi all

    Fixed it with help from a friend. The trick is done with a little bit of jquery that reroutes a mouseclick.

    jQuery('#button').click(function() {
      jQuery('#doel').click();
      return false;
    });
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] second link to activate thickbox’ is closed to new replies.
Skip to toolbar