Add Content Above Inventory - Vehicle List Page / Search Results Page

Mike Fitzpatrick -

There are times when you will want to add a banner or other content above the inventory on vehicle list pages. To accomplish this you will essentially add your content into the "Inventory Vehicle List Page" widget area and then use javascript to move that to the top of the page. 

Below are the steps with some example javascript.

  1. Add your content to the widget area.

 

2. Once you have added the content you wish to have in the widget area add the following javascript in CarDealerPress > Settings > Scripts > List Script Inject to move it to the top.

 

jQuery('#inventory-top').append(jQuery('.inventory-list.widget.widget_text'));

Note: If you have more than one piece of content that you want to be on the list page, you may need to wrap them individually. This script moves the entire widget area to the top of the page.

Have more questions? Submit a request

Comments

Powered by Zendesk