Powerpack for Beaver Builder fix for scroll to

<?php
/**
 * reset global page = 1 to page = 0
 */
add_action( 'pp_cg_before_posts', function( $settings, $query ) {

    $paged = $GLOBALS['wp_the_query']->get( 'paged' );
    $paged = ( $paged < 2 ) ? 0 : $paged;

    $GLOBALS['wp_the_query']->set( 'page', $paged );
    $GLOBALS['wp_the_query']->set( 'paged', $paged );

}, 10, 2 );