CarDealerPress

WordPress for car dealers

  • Home
    • LEARN MORE
  • Features
    • CarDealerPresss Overview
  • FAQ’s
    • LEARN MORE
  • Pricing
    • Automatic Imports Pricing
    • Manual Entry Pricing
    • Learn more about CarDealerPress
    • LEARN MORE
  • About Us
    • Blog
    • Contact Us
    • LEARN MORE
    • Privacy Policy
    • Cookie Policy
  • Support
    • Get Support
    • Plugins we use
    • Suggested WordPress Themes
    • LEARN MORE
You are here: Home / Change contact phone on VDP new and used

Change contact phone on VDP new and used

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]

Blog Categories

  • Automotive SEO (15)
  • Branding (7)
  • CarDealerPress updates (1)
  • Conversion (5)
  • Featured Websites (2)
  • Google Analytics (6)
  • Internet Marketing (17)
  • Inventory Plugin Updates (4)
  • myPages (3)
  • News and Reviews (4)
  • Reputation Management (7)
  • Tutorials (9)
  • WordPress (16)

Site Search

Copyright © 2002–2023 ยท DealerTrendTM