Skip to content

Commit

Permalink
WDSUS-2 - Fix content layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
khleomix committed Sep 4, 2023
1 parent b30d899 commit 3bb5239
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<main id="main" class="<?php echo esc_attr( main_classes( [] ) ); ?>">

<section class="error-404 not-found">
<section class="error-404 not-found is-layout-constrained">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( "Sorry, this page doesn't exist.", 'wd_s' ); ?></h1>
</header><!-- .page-header -->
Expand Down
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<?php if ( have_posts() ) : ?>

<header class="page-header">
<header class="page-header is-layout-constrained">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
Expand Down
8 changes: 4 additions & 4 deletions inc/template-tags/print-entry-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ function print_entry_footer() {
if ( $categories_list && get_categorized_blog() ) {

/* translators: the post category */
printf( '<span class="cat-links">' . esc_attr__( 'Posted in %1$s', 'wd_s' ) . '</span>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- XSS OK.
printf( '<div class="cat-links">' . esc_attr__( 'Posted in %1$s', 'wd_s' ) . '</div>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- XSS OK.
}

/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_attr__( ', ', 'wd_s' ) );
if ( $tags_list ) {

/* translators: the post tags */
printf( '<span class="tags-links">' . esc_attr__( 'Tagged %1$s', 'wd_s' ) . '</span>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- XSS OK.
printf( '<div class="tags-links">' . esc_attr__( 'Tagged %1$s', 'wd_s' ) . '</div>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- XSS OK.
}
}

if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '<span class="comments-link">';
echo '<div class="comments-link">';
comments_popup_link( esc_attr__( 'Leave a comment', 'wd_s' ), esc_attr__( '1 Comment', 'wd_s' ), esc_attr__( '% Comments', 'wd_s' ) );
echo '</span>';
echo '</div>';
}

edit_post_link(
Expand Down
2 changes: 1 addition & 1 deletion template-parts/content-none.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

?>

<section class="no-results not-found">
<section class="no-results not-found is-layout-constrained">

<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'wd_s' ); ?></h1>
Expand Down

0 comments on commit 3bb5239

Please sign in to comment.