Hello thanks for you reply, but I did not find it in functions.PHP. Maybe becasue I am using DIVI template by Elegant themes.
I thing this is all code for theese links. Could you please find how to add ‘#anchor’
$previous_link_text = '' !== $prev_text ? esc_html( $prev_text ) : '%title';
$next_link_text = '' !== $next_text ? esc_html( $next_text ) : '%title';
$in_same_term = 'on' === $in_same_term && ! is_page() ? true : false;
if ( '' === $taxonomy_name ) {
$current_taxonomy = is_singular( 'project' ) ? 'project_category' : 'category';
} else {
$current_taxonomy = sanitize_text_field( $taxonomy_name );
}
ob_start();
$next_post_link = get_previous_post_link( '%link', '<span class="meta-nav">' . esc_html( _x( '←', 'Previous post link', 'et_builder' ) ) . '</span> ' . $previous_link_text, $in_same_term, '', $current_taxonomy );
$previous_post_link = get_next_post_link( '%link', $next_link_text . ' <span class="meta-nav">' . esc_html( _x( '→', 'Next post link', 'et_builder' ) ) . '</span>', $in_same_term, '', $current_taxonomy );
if ( 'on' !== $hide_prev && '' !== $previous_post_link ) { ?>
<span class="nav-previous">
<?php echo $previous_post_link; ?>
</span>
<?php }
if ( 'on' !== $hide_next && '' !== $next_post_link ) { ?>
<span class="nav-next">
<?php echo $next_post_link; ?>
</span>
<?php }