Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

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.

<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.

<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.

<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>

Add Phone Number to VDP

This script can be placed in the footer scripts area on the site’s dynamic-inventory-detail page.

<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>

  • No labels