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 / Academy / Inventory Plugin Tutorials / Replace default image placeholder

Replace default image placeholder

[cc lang=’javascript’ ]/* Replace default stock image when not images is found */
if (jQuery(‘#dealertrend-inventory-api’).length){
if (jQuery(‘#armadillo-listing’).length){ //Looks on Vehicle List Page
jQuery(‘.armadillo-photo img’).each(function(){
if (jQuery(this).attr(‘src’).match(/s_no_photo/i) != null){
jQuery(this).attr(‘src’,’/wp-content/uploads/2012/05/coming-soon-vehicle.jpg’);
}
});
} else {
jQuery(‘.armadillo-images a’).each(function(){ //Looks on Vehicle Detail Page
if (jQuery(this).attr(‘href’).match(/m_no_photo/i) != null){
jQuery(this).attr(‘href’,’/wp-content/uploads/2012/05/coming-soon-vehicle.jpg’);
jQuery(this).children(‘img’).attr(‘src’,’/wp-content/uploads/2012/05/coming-soon-vehicle.jpg’);
}
});
}
}[/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