Archive Title Change to Blog

[ad_1]

Hey there, I have searched for this on the forum and although it was covered my theme is different than what I have read so I am reaching out for assistance.

Basically, the title changes to Archives when I set the “blog” to post page.

I would like to keep or edit the Archive title name. The below code is from the archive.php file – hoping that the solution is to change something in the code below.

<?php
/**
 * The template for displaying archive pages.
 *
 * @package HelloElementor
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
?>
<main id="content" class="site-main">

	<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
		<header class="page-header">
			<?php
			the_archive_title( '<h1 class="entry-title">', '</h1>' );
			the_archive_description( '<p class="archive-description">', '</p>' );
			?>
		</header>
	<?php endif; ?>
<div class="page-content">
    <?php
    while ( have_posts() ) {
        the_post();
        $post_link = get_permalink();
        ?>
        <article class="post">
            <?php
            printf( '<h2 class="https://projectdmc.org/support/topic/archive-title-change-to-blog/%s"><a href="https://projectdmc.org/support/topic/archive-title-change-to-blog/%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), wp_kses_post( get_the_title() ) );
            if ( has_post_thumbnail() ) {
                printf( '<a href="https://projectdmc.org/support/topic/archive-title-change-to-blog/%s">%s</a>', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) );
            }
            the_excerpt();
            ?>
        </article>
    <?php } ?>
</div>

<?php wp_link_pages(); ?>

<?php
global $wp_query;
if ( $wp_query->max_num_pages > 1 ) :
    ?>
    <nav class="pagination">
        <?php /* Translators: HTML arrow */ ?>
        <div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
        <?php /* Translators: HTML arrow */ ?>
        <div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
    </nav>
<?php endif; ?>

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer