Gutenberg html output
-
Hi. I’m new to this.
I develop small (child)-themes for clients that target their needs.
Everything was fine until Gutenberg and WP5 appeared. Now I have to build my themes for that combo and the html output (classes and ids mainly) is quite different from the previous WordPress. I don’t want to add anything to the controversy but I have just some questions:
— Why have the ids (eg “gallery-1”) disappeared ? It was quite useful to have them in each post to be able to target individual items. Will they reappear ?
— Galleries: .portrait and .landscape classes associated with images was really useful for specific layout. Why don’t keep them ?
— Will it be possible to output individual elements (blocks / block-types) with a specific function (like has_gallery or has_thumbnail_image) ? This would be really useful to make posts uniform, prevent user from breaking everything and make more complex layouts based on content.I guess my demands won’t be fulfilled. So is there a way to add more syntax elements to posts, maybe with custom post types ? I’m not familiar with that and don’t know if it is supported in Gutenberg.
The topic ‘Gutenberg html output’ is closed to new replies.