var path = '/wp-content/plugins/prolike/'; $('.classname img').attr('src', path + 'assets/img/icon_button/image' + current_image + '.png');