This will change out the contact phone number on the new and used detail pages.
[cc lang='javascript' ]
// Change Phone # if (jQuery('.armadillo-breadcrumbs a:nth-child(2)').text().match(/new/i) != null){ new_phone = '
'; if (jQuery('#armadillo-listing').length){ jQuery('.armadillo-item .armadillo-contact-information').html(new_phone); } else if (jQuery('#armadillo-detail').length) { jQuery('.armadillo-column-left .armadillo-contact-information p').each(function(){ if (jQuery(this).text().match(/phone/i) != null) { jQuery(this).html(new_phone); } else { jQuery(this).remove(); } }); } } else if (jQuery('.armadillo-breadcrumbs a:nth-child(2)').text().match(/used/i) != null) { used_phone = '
'; if (jQuery('#armadillo-listing').length){ jQuery('.armadillo-item .armadillo-contact-information').html(used_phone); } else if (jQuery('#armadillo-detail').length) { jQuery('.armadillo-column-left .armadillo-contact-information p').each(function(){ if (jQuery(this).text().match(/phone/i) != null) { jQuery(this).html(used_phone); } else { jQuery(this).remove(); } }); } } }
[/cc]