-
Notifications
You must be signed in to change notification settings - Fork 219
Fix: Display the correct title for templates from theme #6452
Conversation
Size Change: 0 B Total Size: 874 kB ℹ️ View Unchanged
|
Thanks for working on this! @dinhtungdu There is a similar PR about this issue (#6345). Could you take a look? |
@gigitux two PRs are similar but different. #6345 handle the template from the plugin while this PR fixes the title for templates from themes that don't exist in the |
We can wait for 6345 to be merged then update this PR to support both title and description. |
Ops, I didn't notice this!
It makes sense! Thanks :D |
Head-up to say that #6345 has been merged :D |
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! LGTM! 🚢
Fixes #5564
This PR searches through all available templates for WC templates from themes that don't have the correct title and then fixes those template titles using
BlockTemplateUtils::convert_slug_to_title()
.Accessibility
prefers-reduced-motion
Other Checks
Screenshots
Testing
Automated Tests
User Facing Testing
archive-product.html
in your theme's templates directoryarchive-product.html
template shows the correct title and description.WooCommerce Visibility
Performance Impact
Changelog