JJ NextGen JQuery Slider
Open new browser window from link (5 posts)

  1. HennieM
    Posted 4 years ago #

    How can I target a blank browser window when following the url link of an image


  2. whatachamp
    Posted 4 years ago #

    Thought I'd answer this one as I had the same problem and couldn't see an answer in this forum. In the jj_ngg_jquery_slider.php file in the includes folder, find line 261 starting with $output .=

    Change it to:

    $output .= "<a target=\"_blank\" href=\"" . esc_attr($image_alt) . "\">";

  3. HennieM
    Posted 4 years ago #

    Thank for your help - now working fine

  4. DivaVocals
    Posted 3 years ago #

    Does anyone know how would I achieve the same thing for specific images versus applying this change for ALL images..

  5. sbaroulette
    Posted 3 years ago #

    Hi! This is the answer I've been looking for except I need the fix for the JJ NextGen Carousel (jj_ngg_jquery_slider.php). I changed the code as above but it didn't work for me. My code is below:

    // Add javascript
        $output .= "\n<script type=\"text/javascript\">";
        // Shuffle results on random order so even if page is cached the order will be different each time
        if($order == 'random' && $shuffle == 'true')
          $output .= "\n  jQuery('ul#" . $html_id . "').jj_ngg_shuffle();";
        $output .= "\n  jQuery('ul#" . $html_id . "').jcarousel(";
        if(count($javascript_args) > 0)
          $output .= "{" . implode(",", $javascript_args) . "}";
        $output .= ");";

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JJ NextGen JQuery Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic