Support » Plugin: WP Car Manager » Pagination Scroll to Top + Back Button on Single Vehicle Pages

  • Resolved Paxjah


    Hi there!

    I’ve created a fix to scroll back to the top of the search results container when navigating through the pages:

    (function( $ ) {
    	$(function() {
    		$( '.wpcm-vehicle-listings' ).on( 'click', '', function() {
    			var van_listings = document.getElementById( 'van-listings' );
    			van_listings.scrollIntoView( { behavior: 'smooth', block: 'start' } );

    But I’m having trouble finding any documentation, or creating a solution, for having a button on a vehicle page which takes you back to the search listings and to the correct page.

    I’ve seen this ticket closed, but not sure why –

    As this uses ajax and saves a request, I’m just trying to find a way to store that request and reload it if the button has been clicked.

    If this isn’t possible via the plugin at current, can you point me in the right direction, as I’m more than happy to do it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • H Paxjah,

    It was me who raised the fact that a back button always takes you back to page 1 regardless of the browser and was told it was due to an ajax issue within the browsers and would be looked at in future releases and to be honest I forgot about it till now so pleased you have raised the issue again.
    If you have any joy please let me know.

    site is


    Plugin Author Barry Kooij


    Hey @paxjah (and @taffy1947),

    Thanks for your patience.

    I think we closed that issue because it was added to our development issue tracker. Unfortunately, I haven’t had time yet to solve this issue. You can follow development on this issue here:

    I’m closing the ticket here because this is more a feature request than a support request. Please follow the GitHub issue (linked above) and let’s discuss this further over there.

    Kind Regards,

    Barry Kooij

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination Scroll to Top + Back Button on Single Vehicle Pages’ is closed to new replies.