Add Element to SRP
Place this script in the domain node’s footer section to insert an element into the SRP below the price wrapper. Replace {PLACE ELEMENT HERE}
with the element to be inserted.
Code Block |
---|
<script>
$(document).ready(function () {
$('.unit-list .unit').each(function () {
$(this).find('.unit-price-wrapper').after('<div class = "srp-misc-element-wrapper">{PLACE ELEMENT HERE}</div>')
});
//lazy/AJAX loaded listing page units
$('.ajax-unit-list').on('unit-loaded', function (e, unit) {
$(unit).find('.unit-price-wrapper').after('<div class = "srp-misc-element-wrapper">{PLACE ELEMENT HERE}</div>')
});
});
</script> |
Add Element to VDP
This script can be placed in the footer scripts area on the site’s dynamic-inventory-detail page. Replace {PLACE ELEMENT HERE}
with the element to be inserted.
Code Block |
---|
<script>
$(document).ready(function () {
$(this).find('.unit-price-wrapper').after('<div class = "vdp-misc-element-wrapper">{PLACE ELEMENT HERE}</div>')
});
</script> |
Add Phone Number to SRP
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 () { var phone = $('.unit-detail-v2').data('phone') $(this).find('.unit-price-wrapper').after('<div class = "listing-phone-link"><a href = "tel:' + phone + '">Call Today! ' + phone + '</a></div>') }); </script> |