WPIntell

Source evidence

Change link target

oik-nivo-slider · support · 2013-03-19T18:34:00+00:00

mixedsentiment
mediumseverity
0.72relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 31 rows with source links

19.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
SpiritedOne resolved
I’m really loving this plugin, but not sure if I can the slider links can open in a new target window. Is this possible? http://wordpress.org/extend/plugins/oik-nivo-slider/ ok, so its no way an official way to do it. Its just a jquery code i made to get around this, until the developers fully support this option. Hope it helps! jQuery(document).ready(function() { jQuery("#slider a img").each(function (i) { jQuery(this).parent().attr('target','_blank'); }); }); Thank you so much for the js, gonzalom, but I’m not skilled enough to implement it, and need a little more help. I’m guessing I need to add the jquery to one of the .js files in the plugin, but they are all showing as (inactive) when viewed in the editor. Hi, with oik version 2.0 this is now possible using a new shortcode [bw_jq]. I wrote a slightly simpler version of the jQuery code, releasing the new version today (18th June 2013) See how this is done at http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/wordpress-plugins/oik-nivo-slider/oik-nivo-slider-faq/oik-nivo-slider-with-links-opening-in-new-window/ The jQuery code I wrote is /** * (C) Copyright Bobbing Wide 2013 * Simple jQuery to set links in the oik-nivo-slider to open in a new window. * Adds target="_blank" to any anchor tag (a) within the class of .nivoSlider */ jQuery(document).ready(function() { jQuery(".nivoSlider a").attr("target","_blank"); });

Comments

3 shown
gonzalom 2013-03-19T20:30:00+00:00

ok, so its no way an official way to do it. Its just a jquery code i made to get around this, until the developers fully support this option. Hope it helps! jQuery(document).ready(function() { jQuery("#slider a img").each(function (i) { jQuery(this).parent().attr('target','_blank'); }); });

SpiritedOne 2013-03-22T18:14:00+00:00

Thank you so much for the js, gonzalom, but I’m not skilled enough to implement it, and need a little more help. I’m guessing I need to add the jquery to one of the .js files in the plugin, but they are all showing as (inactive) when viewed in the editor.

bobbingwide 2013-06-18T16:07:00+00:00

Hi, with oik version 2.0 this is now possible using a new shortcode [bw_jq]. I wrote a slightly simpler version of the jQuery code, releasing the new version today (18th June 2013) See how this is done at http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/wordpress-plugins/oik-nivo-slider/oik-nivo-slider-faq/oik-nivo-slider-with-links-opening-in-new-window/ The jQuery code I wrote is /** * (C) Copyright Bobbing Wide 2013 * Simple jQuery to set links in the oik-nivo-slider to open in a new window. * Adds target="_blank" to any anchor tag (a) within the class of .nivoSlider */ jQuery(document).ready(function() { jQuery(".nivoSlider a").attr("target","_blank"); });