Skip to content
Products
Docs
Pricing
Blog
Log in
Log in
Sign up
Sign up
Products
Docs
Pricing
Blog
Hodor Hodor
Hodor Hodor
Aug 5, 2019

How to scroll after paginate

go to /inc/classes/BxDolPaginate.php

change this:

   protected function _getPageChangeOnClick($aReplacement)    {        return !empty($this->_sOnChangePage) ? 'onclick="javascript:' . $this->_oTemplate->parseHtmlByContent($this->_sOnChangePage, $aReplacement, array('{', '}')) . '; return false;"' : '';    }

to this:

protected function _getPageChangeOnClick($aReplacement)    {        return !empty($this->_sOnChangePage) ? 'onclick="javascript:scorlly();' . $this->_oTemplate->parseHtmlByContent($this->_sOnChangePage, $aReplacement, array('{', '}')) . '; return false;"' : '';    }

go to studio->designer>injection and add this to the head:

 *add script tag surround (cant do it here)

 function scorlly(){  $("html, body").animate({ scrollTop: 300 }, "slow");  return false;  }
2
Category
Spotlight
Created
Aug 5, 2019
Updated
Aug 5, 2019