-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a setting to hide the prefix in the archive title #42594
Conversation
Size Change: +109 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! It's working well for me in testing.
Is there a better way than using the filter?
I just had a play around with this, and I didn't see anything better than the filter you've used. I think how you've done it is a good implementation.
Should date archives also have their prefix removed?
In my opinion, this prefix should also be removed, as I think it would be clear to users that date archive titles would behave the same as other archive titles.
How can we indicate what the setting does, while inside the editor? Maybe the default placeholder should be "Type: Archive title" and then "Archive title" when the option is toggled off.
It would be good to see the placeholder change when this option is toggled. I think "Type: Archive title" makes sense 👍 This keeps the wording consistent with the toggle label. Other alternatives could be: "Archive type: Archive title" or "Prefix: Archive title"
How about these texts in the editor: I thought about Archive type: term or Archive type: taxonomy but they would technically be incorrect. I suppose that, one could look into detecting the actual archive type in the editor, based on the template, but that feels like it may lead down the rabbit hole and can be a separate PR... |
I like these, I think they represent the two different states well.
Yes, I see what you mean, I don't think it's immediately obvious what this means unless you're already aware of the term in this context.
I agree this could be a separate piece of work - I think this current PR is already valuable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good to me, I think it's ready to bring in 🚢
What?
Adds an option to hide the archive type in the title. "Category: Markup" would show as "Markup".
Closes #30519
Why?
How?
Testing Instructions
Screenshots or screencast