QuestionQ12

Adobe Experience Manager Sites

An Adobe Commerce developer attempts to remove a block by using the <remove name="test.block"/> tag in a layout XML file, but it causes an error and does not work.

Which tag should be used to correct the error?

  • A Use <referenceBlock name="test.block" remove="true"/>
  • B Use <remove name="Custom_Module:test.block"/>
  • C Use <referenceBlock name="test.block" delete="true"/>
Explanation

Adobe Commerce removes an existing layout block by referencing it with <referenceBlock> and setting its remove attribute to true. The standalone <remove> instruction is reserved for static resources in the page <head>, rather than blocks or containers.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!