add page number to archive pages
This commit is contained in:
parent
8fcd6b3db7
commit
63ed085808
4 changed files with 12 additions and 2 deletions
|
@ -21,6 +21,9 @@ get_header();
|
|||
<?php
|
||||
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
||||
?>
|
||||
<?php if ( get_query_var('paged') ) {
|
||||
echo '<span class="paged-page-number">(Page '. get_query_var('paged') .')</span>';
|
||||
} ?>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
|
|
|
@ -1383,7 +1383,10 @@ div.lwa-modal-overlay div.lwa-modal-popup {
|
|||
text-align: center;
|
||||
padding-bottom: .5rem;
|
||||
}
|
||||
|
||||
.paged-page-number {
|
||||
color: var(--color-gray-3);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.entry .entry-footer .shelf-links,
|
||||
.entry .entry-footer .spectrum-links,
|
||||
|
|
4
tag.php
4
tag.php
|
@ -21,6 +21,10 @@ $term = get_term_by( 'id', $termid, 'tags' );
|
|||
|
||||
<header class="page-header">
|
||||
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
|
||||
|
||||
<?php if ( get_query_var('paged') ) {
|
||||
echo '<span class="paged-page-number">(Page '. get_query_var('paged') .')</span>';
|
||||
} ?>
|
||||
<?php if ( tag_description() ) { ?>
|
||||
<h2 class="entry-description has-regular-font-size"><?php echo tag_description(); ?></h2>
|
||||
<?php } ?>
|
||||
|
|
|
@ -29,7 +29,7 @@ get_header();
|
|||
$paged = get_query_var( 'paged' );
|
||||
if ( $paged ) {
|
||||
?>
|
||||
<h3>Page <?php echo esc_html($paged)?></h3>
|
||||
<span class="paged-page-number">Page <?php echo esc_html($paged)?></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue