Info |
---|
Note that this guide is written for the version 2 standard templates. Selectors may need to be changed for version 1 or custom templates. Contact Andrew Pitts if you need assistance with this. |
Table of Contents | ||
---|---|---|
|
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 () { $(this).find('.unit-price-wrapper').after('<div class = "vdp-misc-element-wrapper">{PLACE ELEMENT HERE}</div>') }); </script> |
Add Phone Number to SRP
A single 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> |
It is also possible to add this on a multi-location site and have the number change depending on the lot of the unit. More on that coming soon!