• Resolved papstar

    (@papstar)


    Hi thanks for making this great plugin!

    I was just wondering about editing the php code or something to change the link target to an iframe.

    Example: I have an iframe at the top of the page and a gallery bellow it. I want all the gallery links to load into the iframe.

    Is there some code I can use to either make _blank _self to target a specific iframe id?

    Thanks in advance!

    https://wordpress.org/plugins/wp-gallery-custom-links/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter papstar

    (@papstar)

    Hi there, just letting you know that I’m abandoning that idea as it’s probably unnecessary, but if it is easily done then please let me know, cheers.

    There’s not a way to specify a target iframe in the plugin, although you could probably use jQuery to make the change. Something like the following (not tested):

    jQuery('.page-id-7 .gallery-item a').attr('target','youriframeid');

    Marking this resolved as poster has no further response.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set target to an iframe’ is closed to new replies.