Change default 'no photo' image - Armadillo theme

Jason Brass -

valid versions: 3.25.0 and up.

Change the var NEW_IMAGE_URL with the location of your new image. This will change the image on the list, detail and the similar vehicles. 

//Change Default No photo - listing
if (jQuery('#dealertrend-inventory-api').length) {
var newImageUrl = 'NEW_IMAGE_URL';
if (jQuery('#armadillo-listing').length) { jQuery('.armadillo-vehicle').each(function () { jQuery('.armadillo-photo img').each(function () { if (jQuery(this).attr('src').match(/s_no_photo/i) !== null) { jQuery(this).attr('src', newImageUrl); } }); }); } else { //detail if (jQuery('#armadillo-detail').length) { jQuery('#vehicle-images a').each(function () { if (jQuery(this).attr('href').match(/m_no_photo/i) !== null) { jQuery(this).attr('href', newImageUrl); jQuery(this).children('img').attr('src', newImageUrl); jQuery('#vehicle-thumbnails').remove(); } jQuery('.similar-photo a img').each(function () { //Looks at similiar vehicles if (jQuery(this).attr('src').match(/s_no_photo/i) !== null) { jQuery(this).attr('src', newImageUrl); } }); }); } } }
Have more questions? Submit a request

Comments

Powered by Zendesk