Need some help with a flickr issue


I am using the flikr badges widget, it is very basic and does exactly what i need it to do to be honest, except for one thing, I really want the link to open in a new page (_blank)

The developer gives these instructions

Open image in new window/tab

Put the script below in the “Custom Script & Stylesheet” widget box

<script type=”text/javascript”>

jQuery(document).ready(function($) {

$(‘.flickr_badge_image a’“click”, function(){

$(this).target = “_blank”;$(this).prop(‘href’:wink:);

return false;




Please be sure that jQuery already attached to the wp_head, We can make this by editing the theme function.php. Open the file and add the following code:

Custom function

This function will call the jQuery and enqueue it for next process.

function my_jquery_function() {

wp_enqueue_style( ‘jquery’ );


Sending jQuery to the header can be done with wp_head hook.

add_action( ‘wp_head’, ‘my_jquery_function’ );

I have tried this again and again and can not get it to work, and the only reply the developer gave was “You have a syntax error on your site”

I have checked my site and have no syntax errors.

Anybody got any ideas ?

The site is and it has all the code on the site now as instructed and still doesn’t work.

Any help would be greatly appreciated.