What shortcodes can I use for my website?
This reference guide covers the shortcodes available on your Dealer Inspire website, what each one does, and which code format to use based on your page template. Use this alongside How to add shortcode to your website for step-by-step instructions on adding shortcode to a page.
In this article, you will find shortcodes for contact info, hours, inventory, specials, and page elements.
To get started
Go to the Cars.com Hub. Click Dealer Inspire, then Manage Website.
In this article:
- Contact & location
- Hours & date
- Staff
- Dealer Info Sidebar
- Fixed Ops coupons
- Slider
- Homepage Personalizer
- Social media
- Inventory
- FAQ
Important
Shortcode works on Default, Full Width, and DIPC page templates, which are available on both Site Builder and Classic sites. If you’re working on a Site Builder page template, do not use shortcode and use a widget instead (see reference guide below). Widgets cover most of the same functionality with styling already built in.
Not sure what type of site you have? Check the template on your homepage under page attributes on the right hand side. If it’s set to Site Builder, you have a Site Builder site. If not, you have a Classic site.
Have questions? Reach out to support@dealerinspire.com.
Contact & Location
Phone numbers
If your phone numbers ever change, updating them in your settings automatically updates every page where you’ve used these shortcodes or widgets, no manual edits needed.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Main phone | [di_option option="di_phone"] | Dealer Phones |
| Sales phone | [di_option option="di_phone_sales"] | Dealer Phones |
| Service phone | [di_option option="di_phone_service"] | Dealer Phones |
| Parts phone | [di_option option="di_phone_parts"] | Dealer Phones |
| Fax | [di_option option="di_phone_fax"] | |
| Toll-Free | [di_option option="di_phone_toll_free"] | |
| Body Shop | [di_option option="di_phone_bodyshop"] | |
| Collision Center | di_option option="di_phone_collisioncenter"] |
Address
Update your address once in your settings and every page using these shortcodes reflects the change automatically.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Street address | [di_dealer_option street_address=""] | Get Directions |
| City | [di_dealer_option city=""] | Get Directions |
| State | [di_dealer_option state=""] | Get Directions |
| Zip code | [di_dealer_option zipcode=""] | Get Directions |
| Country | [di_dealer_option country=""] | Get Directions |
| Google Maps | [di_option option="di_google_map"] | Get Directions |
Dynamic Variables
Use target city variables in page copy to support local SEO — for example, “Serving Toyota drivers in %%target_city_1%%.” The city names pull in automatically based on your configured target markets.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Dealer name | %%di_name%% | |
| Dealer makes | %%di_makes%% | |
| Target city 1 | %%target_city_1%% | |
| Target city 2 | %%target_city_2%% | |
| Target city 3 | %%target_city_3%% | |
| Target city 4 | %%target_city_4%% |
Hours & Date
Hours
Display your dealership’s hours for a specific department. Useful on a Service or Parts page where shoppers need to know when you’re open before heading in.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Sales hours | [di_hours department="Sales"] | Dealer Hours |
| Service hours | [di_hours department="Service"] | Dealer Hours |
| Parts hours | [di_hours department="Parts"] | Dealer Hours |
Dynamic hours
Display only the hours your dealership is currently open for a specific department. Shoppers checking your Service page before heading in will only see hours when the department is actually open — no “Closed” entries cluttering the experience.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Today’s open hours for a specific department | [di_display_open_hours departments="Service" class=dynamic-hours] | Contact Bar |
Note: Replace “Service” with the applicable department name.
Today’s date
Display today’s date on any page. Works on Classic page templates only.
| Format | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Day, Date, Month, Year | [di_date format="l jS F Y" /] | |
| Numeric | [di_date format="m-d-Y" /] |
Staff
Display staff members on any page, filtered by department. Use this to highlight your service team on a Service Center page, or your sales team on a Meet Our Team page — without showing your entire roster.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Sales staff | [staff department="Sales"] | Staff Datasource |
| Service staff | [staff department="Service"] | Staff Datasource |
| Parts staff | [staff department="Parts"] | Staff Datasource |
Note: Replace the department name between the quotation marks to pull in a specific department. Use “Staff” to pull in the entire roster. Department names must match exactly how they are set up in your Staff plugin.
Dealer Info Sidebar shortcode
Display a sidebar-style block showing the department name, phone number, and hours.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Dealer Information | [dealer_info departments="Insert Department Here" phones="Insert Phone Here" heading="Type Heading Here" /] | Dealer Info |
Fill in the appropriate departments and shortcodes between the quotation marks accordingly.
Example: [dealer_info departments="Service" phones="di_phone_service" heading="Service Center Info" /]
Fixed Ops coupons shortcodes
Pull service or parts coupons onto any page. Instead of manually updating coupon content every month, this shortcode pulls whatever coupons are currently active in your Fixed Ops plugin.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Active Service Coupons | [fixedops type="service-specials"] | Fixed Ops |
| Active Parts Coupons | [fixedops type="parts-specials"] | Fixed Ops |
| Custom Coupons | [fixedops type="Insert Coupon Type Here"] | Fixed Ops |
Note: Coupons displayed here are managed in your Fixed Ops plugin.
Slider shortcode
Display a specific DI Slide set on any page. Use this to embed a slider you’ve already built in DI Slides onto a landing page or campaign page — without rebuilding it from scratch.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| DI Slide | [di-slider name="Insert Slider Name Here"] | DI Slider |
Note: Replace the placeholder text with the name of the slider as it appears in your DI Slides settings.
Homepage Personalizer shortcode
Pull your Personalizer content onto the homepage.
| Output | Classic Shortcode | Site builder Widget |
|---|---|---|
| Personalizer messages | [di_personalize key="Homepage USP" loading_type="line" ]default homepage text[/di_personalize] | Personalizer |
Note: Replace default homepage text with the fallback text you want to display before the personalizer loads.
Social media shortcodes
Pull your dealership’s social media URLs into page content. Use these on an About Us or Contact page so your social links always reflect what’s in your settings — no hardcoded URLs to chase down if something changes.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Facebook page URL | [di_option option='di_facebook_url'] | Dealer Socials |
| Twitter/X ID | [di_option option='di_twitter_id'] | Dealer Socials |
| Google+ URL | [di_option option='di_google_plus'] | Dealer Socials |
| Instagram URL | [di_option option='di_instagram_url'] | Dealer Socials |
Inventory shortcodes
Inventory shortcodes display filtered vehicle listings. Use these to build targeted landing pages — like a “New Ford Trucks” page that automatically shows only new Ford trucks from your inventory, without building a custom vehicle results page.
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Inventory | [inventory_vehicle_cards] | Inventory Datasource |
Lightning templates only
If these shortcodes are added to any other page template it may cause issues or display incorrectly. Reach out to support@dealerinspire.com with questions.
Use the following shortcodes for Lightning Templates:
| Output | Classic Shortcode | Site Builder Widget |
|---|---|---|
| Basic shortcode | [inventory_lightning] |
Add attributes to filter what inventory Displays:
Inventory attributes
| Output | Attribute | Example |
|---|---|---|
| Filter by inventory type | type | type="New" / type="Used,Certified Used" |
| Filter by make | make | make="Toyota" |
| Filter by model | model | model="Corolla" |
| Filter by trim | trim | trim="XLE" |
| Filter by year | year | year="2024" |
| Filter by body style | body | body="SUV" |
| Filter by feature | features | features="Sunroof" |
| Show only specials | specials_only | specials_only="true" |
| Sort order | sort-index | sort-index="low_to_high" |
| Hide filters from shopper | strict | strict="year" |
Payment attributes
| Output | Attribute | Example |
|---|---|---|
| Set default payment type | payment_type | payment_type="cash" / "lease" / "finance" |
| Set minimum payment shown | payment_min | payment_min="1000" |
| Set maximum payment shown | payment_max | payment_max="10000" |
Note: payment_min and payment_max require payment_type to be set. Finance and lease options are only available if the payments plugin is enabled.
Advanced attributes
| Output | Attribute | Example |
|---|---|---|
| Filter by days in stock | days_in_stock | days_in_stock="50+" / "10-50" / "-40" |
| Filter by fuel type | fueltype | fueltype="Electric" |
| Set a default keyword search | query | query="black" |
Examples:
- Displays new Toyota Corollas
[inventory_lightning type="New" make="Toyota" model="Corolla" /]
- Displays new vehicle specials only
[inventory_lightning type="New" specials_only="true" /]
- Displays used and certified used vehicles
[inventory_lightning type="Used,Certified Used" /]
- Displays used and certified used vehicles with a maximum cash price of $10,000
[inventory_lightning type="Used,Certified Used" payment_type="cash" payment_max="10000" /]
Note: This guide covers shortcodes available for you to use and is intended for users who are comfortable working with code. If you’re unfamiliar with HTML or want to explore more advanced customizations, reach out to support@dealerinspire.com.
FAQ
Does my code format depend on my site type or my page template? Your code format follows your page template, not your site type. Default, Full Width, and DIPC page templates always use Classic shortcode, even on a Site Builder site. Site Builder page templates should only be used on Site Builder sites, in which case default to the Site Builder widgets instead.
What’s the difference between a Site Builder site and a Site Builder page template? These are two different things. Your site type — Site Builder or Classic — describes the overall setup of your website. Your page template is set per page and controls how that page is built.
How do I know which page template I’m on? Check the Template field in the Page Attributes panel on the right side of the page editor.
What if my shortcode isn’t rendering on the front end? Check that the shortcode is spelled correctly and that the page has been published after saving. If you used Classic shortcode on a Site Builder page template, that may be the cause. Use widgets instead. For further help, reach out to support@dealerinspire.com.
What if a shortcode I need isn’t working on my Site Builder page template? Use dedicated widgets on Site Builder page templates instead of shortcode. Check the widget library in Site Builder. If you have questions or can’t find a widget to use, reach out to support@dealerinspire.com for help finding the right component.
Can I copy and paste from this article? Yes. You can copy and paste any shortcodes or widget names directly. However, please note that many shortcodes contain placeholder text. If a shortcode isn’t rendering correctly, ensure you have replaced generic terms (like department or slider names) with the specific names used on your website.


