Skip to content

Commit

Permalink
Update: Single listing title tag from <h2> to <h1> for better SEO…
Browse files Browse the repository at this point in the history
… also Modal Heading (#2195)

* Update listing title markup for SEO

* replace Modal Heading to normal div
  • Loading branch information
RabbiIslamRony authored and nazmulhasan103 committed Jan 22, 2025
1 parent 641614a commit 6bc10d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/range-slider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/search-form.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/single/fields/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<header class="directorist-modal__header">

<h2 class="directorist-modal-title" id="directorist-report-abuse-modal__label"><?php esc_html_e('Report Abuse', 'directorist'); ?></h2>
<div class="directorist-modal-title" id="directorist-report-abuse-modal__label"><?php esc_html_e('Report Abuse', 'directorist'); ?></div>

<button class="directorist-modal-close directorist-modal-close-js" aria-label="Report Modal Close">
<span aria-hidden="true">&times;</span>
Expand Down
2 changes: 1 addition & 1 deletion templates/single/header-parts/listing-title.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

if ( $display_title ): ?>

<h2 class="directorist-listing-details__listing-title"><?php echo esc_html( $listing->get_title() ); ?></h2>
<h1 class="directorist-listing-details__listing-title"><?php echo esc_html( $listing->get_title() ); ?></h1>

<?php endif;

Expand Down

0 comments on commit 6bc10d9

Please sign in to comment.