Skip to content

Commit

Permalink
Fix archive page title output (godaddy-wordpress#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Herman authored and richtabor committed Oct 19, 2019
1 parent e767f7a commit 67252ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,11 @@ function filter_page_titles( $args ) {

if ( is_archive() ) {

$args['title'] = get_the_archive_title();
$args['custom'] = true;
$args['title'] = sprintf(
'<h1 class="post__title m-0 text-center">%s</h1>',
get_the_archive_title()
);

}

Expand Down

0 comments on commit 67252ee

Please sign in to comment.