I'm new to using the Webform module, and started with the Contact form provided on install. I have added a Webform block to the Content region, but it doesn't show up on the front-end at all (even when I remove all restrictions such as only showing on certain pages).
I thought it might be a permissions issue, so I checked that all roles have access to see the form. When I tick "Allow users to post submissions from a dedicated URL" and choose a path, both anonymous and logged-in users can view the form at that URL. It's only when it's a block that it doesn't show up. I have also tried clearing the cache, and placing the block in other regions.
I am using Drupal 9 with Webform 6.0.0.
Edit: After some suggestions below I have also tried:
- Another theme: The issue does not happen in the parent theme of my sub-theme, narrowing it down to a possible theme-level issue.
- Deleting my theme's overrides of
region.html.twig
andblock.html.twig
. The issue persists in my theme. - Placing a HTML comment in
block.html.twig
before any Twig code, to check when that file is being used (i.e. it might be loaded, but have a problem with the output code). It is not rendered at all for this specific block.
What are some other possible things that can cause the block to not show up?