Skip to content

Commit

Permalink
Change heading level on group announcements.
Browse files Browse the repository at this point in the history
See #3253.
  • Loading branch information
boonebgorges committed Oct 18, 2023
1 parent e9d0094 commit a09fd45
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<a href="<?php echo esc_url( $announcement_url ); ?>">
<?php endif; ?>

<h1 id="title-rendered-<?php echo esc_attr( $editor_id ); ?>" class="announcement-title-rendered"><?php echo esc_html( $announcement->post_title ); ?></h1>
<h2 id="title-rendered-<?php echo esc_attr( $editor_id ); ?>" class="announcement-title-rendered"><?php echo esc_html( $announcement->post_title ); ?></h2>

<?php if ( $read_only ) : ?>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>

<div class="item-header-info">
<h2 class="announcement-title-rendered"><?php echo esc_html( $reply_title ); ?></h2>
<h3 class="announcement-title-rendered"><?php echo esc_html( $reply_title ); ?></h3>
<div class="announcement-info">
<?php printf( 'Posted by: %s', esc_html( $author_name ) ); ?>
<br />
Expand Down
5 changes: 4 additions & 1 deletion wp-content/themes/openlab/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8000,8 +8000,11 @@ a.disabled-link {
justify-content: space-between;
height: 64px;
}
.announcement-item h1.announcement-title-rendered,
.announcement-item h2.announcement-title-rendered {
font-weight: 700;
}
.announcement-item h2.announcement-title-rendered,
.announcement-item h3.announcement-title-rendered {
font-size: 14px;
margin-bottom: 0;
margin-top: 0;
Expand Down
6 changes: 5 additions & 1 deletion wp-content/themes/openlab/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,12 @@ a.disabled-link {
}
}

h1.announcement-title-rendered,
h2.announcement-title-rendered {
font-weight: 700;
}

h2.announcement-title-rendered,
h3.announcement-title-rendered {
font-size: 14px;
margin-bottom: 0;
margin-top: 0;
Expand Down

0 comments on commit a09fd45

Please sign in to comment.