-
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
The DOM structure output in the "Category" block" is different on the front side and the editor side. #29581
Comments
Oh |
We've confirmed it's fixed in 5.8 beta 1! |
Oh, sorry, it was only Problem 2 that was fixed. |
Hi, I believe this was fixed in #43666 ; please reopen this if this is still an issue on Gutenberg 14.1 |
@t-hamano |
@skorasaurus @t-hamano As already mentioned, common customizations such as using the |
I think this is expected behavior. This is because the If you really want to change the DOM structure on the editor side, I think we can use the |
Understood, I'll try! |
Thank you for your development.
The structure output in the "Category block" is different on the front side and the editor side.
Problem 1
▼ For example, when used in list type, the structure on the editor is as follows.
▼ However, what is actually output on the front side is the following structure.
<ul>
class is different<li>
class is different<span>
is differentThe structure has changed from the legacy "Category widget", and it is very difficult to have such a difference.
Problem 2
"wp_list_categories"
hook is not working in the editor.For example, I move the count into
<a>
with code like this:This is not reflected in the editor.
I think these issues are very important.
WordPress information
The text was updated successfully, but these errors were encountered: