Hi,
For implementing the same using the child theme, you can uncomment the following line https://github.com/rtCamp/rtpanel-child-theme/blob/master/lib/rtp-custom-hooks-applied.php#L19
Once that is done go to the end of the rtp-custom-hooks-applied.php
file and paste the following code.
function rtp_custom_archive_pagination() {
/* Page-Navi Plugin Support with WordPress Default Pagination */
if ( !rtp_is_bbPress() ) {
if ( !is_singular() ) {
global $wp_query, $rtp_post_comments;
if ( isset( $rtp_post_comments['pagination_show'] ) && $rtp_post_comments['pagination_show'] ) {
if ( ( $wp_query->max_num_pages > 1 ) ) { ?>
<?php
echo paginate_links( array(
'base' => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->multipart,
'prev_text' => esc_attr( $rtp_post_comments['prev_text'] ),
'next_text' => esc_attr( $rtp_post_comments['next_text'] ),
'end_size' => $rtp_post_comments['end_size'],
'mid_size' => $rtp_post_comments['mid_size']
) ); ?>
<?php
}
} elseif ( function_exists( 'wp_pagenavi' ) ) {
wp_pagenavi();
} elseif ( get_next_posts_link() || get_previous_posts_link() ) { ?>
<?php if ( get_next_posts_link() ) { ?><?php next_posts_link( __( '← Older Entries', 'rtPanel' ) ); ?>
<?php } ?>
<?php if ( get_previous_posts_link() ) { ?><?php previous_posts_link( __( 'Newer Entries →', 'rtPanel' ) ); ?>
<?php } ?>
<?php
}
}
}
}
add_action( 'rtp_hook_archive_pagination', 'rtp_custom_archive_pagination' );
So basically you would have to remove the parent hook and add a hook of your own.