Skip to content

feat: add support for hiding archive title prefix#2880

Merged
abaicus merged 2 commits into
developmentfrom
feat/categ-title-prefix
Jun 26, 2026
Merged

feat: add support for hiding archive title prefix#2880
abaicus merged 2 commits into
developmentfrom
feat/categ-title-prefix

Conversation

@abaicus

@abaicus abaicus commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Closes https://github.com/Codeinwp/otter-internals/issues/266.

Summary

  • Adds toggle to hide archive title prefix for dynamic data;

Screenshots

image

Test instructions

  • Use a default FSE theme (Twenty Twenty-Five should be ok).
  • Edit the archive page in the full site editor.
  • Editor: select text → Dynamic Value → Archive Title → confirm a "Remove Title Prefix" toggle appears in Settings.
  • Frontend: place Archive Title on a category archive with the toggle on → shows term name only, no Category:.
  • Regression: toggle off → prefix returns (Category: …); the Before/After fields still apply on top.
  • Coming to this version from a previous one without the toggle should still work as expected.

Checklist before the final review

  • Included E2E or unit tests for the changes in this PR.
  • Visual elements are not affected by independent changes.
  • It is at least compatible with the minimum WordPress version.
  • It loads additional script in frontend only if it is required.
  • Does not impact the Core Web Vitals.
  • In case of deprecation, old blocks are safely migrated.
  • It is usable in Widgets and FSE.
  • Copy/Paste is working if the attributes are modified.
  • PR is following the best practices

@pirate-bot pirate-bot added the pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) label Jun 24, 2026
@pirate-bot

Copy link
Copy Markdown
Contributor

Bundle Size Diff

Package Old Size New Size Diff
Animations 178.27 KB 178.27 KB 0 B (0.00%)
Blocks 1.64 MB 1.64 MB 381 B (0.02%)
CSS 7.87 KB 7.87 KB 0 B (0.00%)
Dashboard 111.06 KB 111.06 KB 0 B (0.00%)
Onboarding 68.14 KB 68.14 KB 0 B (0.00%)
Export Import 4.7 KB 4.7 KB 0 B (0.00%)
Pro 328.48 KB 328.48 KB 0 B (0.00%)

@pirate-bot

pirate-bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Plugin build for 1c1f0e3 is ready 🛎️!

@pirate-bot

pirate-bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

E2E Tests

Playwright Test Status: See serial and parallel matrix jobs

Performance Results serverResponse: {"q25":398.2,"q50":419.35,"q75":434.3,"cnt":10}, firstPaint: {"q25":548.5,"q50":626.15,"q75":685.4,"cnt":10}, domContentLoaded: {"q25":3343.7,"q50":3390.4,"q75":3414.8,"cnt":10}, loaded: {"q25":3345.6,"q50":3392.7,"q75":3416.9,"cnt":10}, firstContentfulPaint: {"q25":3834,"q50":3895.9,"q75":3918.6,"cnt":10}, firstBlock: {"q25":13288,"q50":13444.6,"q75":13559.8,"cnt":10}, type: {"q25":23.05,"q50":24.31,"q75":30.69,"cnt":10}, typeWithoutInspector: {"q25":19.27,"q50":19.78,"q75":22.81,"cnt":10}, typeWithTopToolbar: {"q25":29.28,"q50":29.51,"q75":29.96,"cnt":10}, typeContainer: {"q25":13.04,"q50":13.69,"q75":14.38,"cnt":10}, focus: {"q25":108.61,"q50":115.08,"q75":118.72,"cnt":10}, inserterOpen: {"q25":37.67,"q50":39.18,"q75":41.72,"cnt":10}, inserterSearch: {"q25":13.26,"q50":13.68,"q75":14.52,"cnt":10}, inserterHover: {"q25":5.35,"q50":5.59,"q75":6.16,"cnt":20}, loadPatterns: {"q25":1556.65,"q50":1578.72,"q75":1621.83,"cnt":10}, listViewOpen: {"q25":207.56,"q50":216.27,"q75":223.8,"cnt":10}

@abaicus abaicus merged commit 19c0077 into development Jun 26, 2026
15 of 17 checks passed
@abaicus abaicus deleted the feat/categ-title-prefix branch June 26, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants