...
A phone number can be added to each vehicle listing on SRPs by adding this script to the domain node’s footer section. You will need to replace any spot with “+ phone +” with the appropriate phone number in the script.
Code Block |
---|
<script> $(document).ready(function () { $('.unit-list .unit').each(function () { var phone = $(this).find('.detailsContainer').data('phone') $(this).find('.unit-price-wrapper').after('<div class = "listing-phone-link"><a href = "tel:' + phone + '">Call Today! ' + phone + '</a></div>') }); //lazy/AJAX loaded listing page units $('.ajax-unit-list').on('unit-loaded', function (e, unit) { var phone = $(unit).find('.detailsContainer').data('phone') $(unit).find('.unit-price-wrapper').after('<div class = "listing-phone-link"><a href = "tel:' + phone + '">Call Today! ' + phone + '</a></div>') }); }); </script> |
...