The goal is to create a reusable block that would replace the header... and that reusable blocks(grouped together) must be take full width of the viewport( even if it is inside a fixed width container).
When the group of blocks are there, the header should be hidden.
script.js - for hiding the header title if our custom block group is existing
my-block.js - contains plugin scripts plugin.php - plugin stuff that are required
css- just custom css for the blocks group that will work for wpBeter
steps:
create a folder of any name in the plugin directory. Then place the plugin.php and the my.block.js inside it. go to your dashboard -> plugins. Find the plugin and activate it. once activated, our custom block will appear in the Gutenberg editor
now import wpb-header-group reusable block... learn how to do it.. the file we need to import is wpb-header-group.json
now we can start just insert our reusable block and the see how it works.