Viewing 2 replies - 1 through 2 (of 2 total)
  • Unfortunately there’s not currently a setting to disable this. I would suggest using jQuery to remove the attribute from all links in the gallery, something like the following (not tested):

    jQuery('#gallery-2 a').removeProp('target');

    If you really wanted to modify the plugin code, you could probably comment out where $target is set to “self” if the value is blank (also untested):

    if( trim( $target ) == '' ) {
        // If empty string ("Same Window") is selected, set target to _self
        $target = '_self'; // <-- comment this out

    I would recommend going the jQuery route over the plugin modification route, as you would need to remember that change and continually make it every time the plugin is updated.

    Thread Starter deroccha

    (@deroccha)

    Thanks for feedback I realized that is not possible to override with own filter. I made it it with jQurey.

    Thanks again, nice plugin we can close the issue

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Switch off target self’ is closed to new replies.