Skip to content

Commit

Permalink
fix(a11y): fix title tags and sections
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoopcsc authored Sep 4, 2024
1 parent 88f3e48 commit 45ffbac
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion template-parts/hero/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="col-md-5">
<div class="hero-title text-left">
<h1 class="p-0 mb-2"><?php the_title(); ?></h1>
<h2 class="h4 font-weight-normal"><?php echo get_the_content(); ?></h2>
<p class="h4 font-weight-normal"><?php echo get_the_content(); ?></p>
</div><!-- /hero-title -->
</div><!-- /col-md-5 -->
</div><!-- /row -->
Expand Down
2 changes: 1 addition & 1 deletion template-parts/home/i-numeri.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="row variable-gutters">
<div class="col-md-6">
<div class="title-section">
<h3 class="mb-3 mb-xl-5"><?php _e("La scuola in numeri", "design_scuole_italia"); ?></h3>
<h2 class="h3 mb-3 mb-xl-5"><?php _e("La scuola in numeri", "design_scuole_italia"); ?></h2>
<p class="mb-0"><?php echo dsi_get_option("numeri_descrizione", "la_scuola"); ?></p>
</div><!-- /title-section -->
</div><!-- /col-md-6 -->
Expand Down
2 changes: 1 addition & 1 deletion template-parts/home/le-carte.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="row variable-gutters mt-0 mt-xl-5">
<div class="col">
<div class="title-section text-center mb-5">
<h3 class="mb-2"><?php _e( "Le carte della scuola", "design_scuole_italia" ); ?></h3>
<h2 class="h3 mb-2"><?php _e( "Le carte della scuola", "design_scuole_italia" ); ?></h2>
<p><?php echo dsi_get_option( "descrizione_carte", "la_scuola" ); ?></p>
</div><!-- /title-section -->
</div><!-- /col -->
Expand Down
2 changes: 1 addition & 1 deletion template-parts/home/strutture.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="row variable-gutters">
<div class="col-md-6">
<div class="big-quote big-quote-secondary">
<h3><?php echo $descrizione_strutture; ?></h3>
<h2 class="h3"><?php echo $descrizione_strutture; ?></h2>
</div><!-- /big-quote -->
</div><!-- /col-md-6 -->
<div class="col-md-5 offset-md-1 cards-wrapper-center">
Expand Down
12 changes: 6 additions & 6 deletions template-parts/home/timeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
$timeline = dsi_get_option( "timeline", "la_scuola" );
if(is_array($timeline) && count($timeline) > 0) {
?>
<section class="section section-padding bg-blue-dark">
<div class="container">
<section class="section-hero bg-blue-dark py-5">
<div class="container section-padding bg-blue-dark">
<div class="row variable-gutters mt-0 mt-xl-2">
<div class="col">
<div class="title-section text-center mb-5">
<h3 class="mb-2" style="color: #ffffff;"><?php _e( "La storia della scuola", "design_scuole_italia" ); ?></h3>
<h2 class="mb-2" style="color: #ffffff;"><?php _e( "La storia della scuola", "design_scuole_italia" ); ?></h2>
<p style="color: #ffffff;"><?php echo dsi_get_option( "descrizione_scuola", "la_scuola" ); ?></p>
</div><!-- /title-section -->
</div><!-- /col -->
Expand All @@ -28,9 +28,9 @@
<div class="it-single-slide-wrapper h-100">
<div class="card card-img card-serif">
<div class="card-body px-0">
<h5><?php echo date_i18n("F Y", $timestamp); ?></h5>
<h3><?php echo $item["titolo_timeline"] ?></h3>
<p><?php echo $item["descrizione_timeline"] ?></p>
<h3 class="mb-1"><?php echo $item["titolo_timeline"] ?></h3>
<span class="h5"><?php echo date_i18n("F Y", $timestamp); ?></span>
<p class="mt-3"><?php echo $item["descrizione_timeline"] ?></p>
</div><!-- /card-body -->
</div><!-- /card -->
</div><!-- /item -->
Expand Down
2 changes: 1 addition & 1 deletion template-parts/struttura/card-large.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php get_template_part("template-parts/svg/icona",$tipologia); ?>

<div class="card-icon-content" id="card-desc-<?php echo $struttura->ID; ?>">
<h4><?php echo $struttura->post_title; ?></h4>
<h3 class="h4"><?php echo $struttura->post_title; ?></h3>
</div><!-- /card-icon-content -->
</div><!-- /card-body -->
</a>
Expand Down

0 comments on commit 45ffbac

Please sign in to comment.