WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. HennieM
    Member
    Posted 2 years ago #

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

    http://wordpress.org/extend/plugins/jj-nextgen-jquery-slider/

  2. whatachamp
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

    Thank for your help - now working fine

  4. DivaVocals
    Member
    Posted 1 year ago #

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

  5. sbaroulette
    Member
    Posted 1 year 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

About this Topic