ucsc / ucsc-2022

Official WordPress theme for UC Santa Cruz
6 stars 0 forks source link

fix: 🐛 Properly modify both tags of the site-title block on home and interior pages. Fixes #299 #300

Closed knice closed 4 months ago

knice commented 4 months ago

What does this do/fix?

Fixes our site title modification script and ensures that site title blocks are properly tagged on all pages

QA

Links to relevant issues

Tests

  1. On your home page, the site-title block in the site header area should be an h1 tag, no matter what you set it to be in the site editor.
  2. On interior pages, the site-title block in the header should be an p tag, no matter what you set it to be in the site editor.
  3. Any other instance of the site-title block you add to a page should not be affected by this. So if you add a site-title block to a page's content area, and set it to be an h4, it will remain an h4 when you view the published page.