Being more of a web designer and less of a developer, I’m having a hard time wrapping my head around the template structure & manipulation.
I’d like to wrap the “listing_content” and “listing_footer” blocks in the “listing_view_template” but when I re-write the themplate structure in the functions.php in the way it is tought in the videos, I get double the blocks displayed.
What is the correct way to re-arrange the templates or even remove parts of it?
Simply adding the blocks into another blocks seems not to override the original template structure but just adds them.
Sorry for the confusion, there are new template manipulation functions that are not documented yet. Please use hivepress()->template->merge_blocks($template, $new_blocks) instead of hivepress()->helper->merge_trees($template, $new_blocks) one. If you also use hivepress()->template->fetch_block($template, $block_name) this way you can fetch blocks (get and remove them at the same time) and merge them into any new place or container.