In which folder can a custom theme favicon be added?
The favicon can be added to the <your_theme_dir>/Magento_Theme/web/ directory of a custom theme. The favicon should have the name favicon.ico and replace the default one from the Magento_Theme module. The <your_theme_dir>/web/ directory is used for storing web assets that are not specific to any module. The <your_theme_dir>/assets/images directory does not exist by default and is not used for storing favicons. Reference: [Add a favicon], [Theme structure]
An Adobe Commerce developer wants to create a new theme Vendor_Orange which extends from MagentoMum
a. Which file is responsible for specifying the parent theme?
The theme.xml file is responsible for specifying the parent theme of a custom theme. The file should contain the
An Adobe Commerce developer is trying to remove a block using the
To remove a block using layout XML, the developer should use the <referenceBlock> tag with the name attribute specifying the name of the block and the remove attribute set to true. For example:
<referenceBlock name=''test.block'' remove=''true''/>
This will remove the block from the layout and prevent it from rendering. The <remove> tag is not valid and will cause an error. The name attribute should not include the module name, as it is not part of the block name. The delete attribute is not valid and will not work. Reference: [Layout instructions], [Remove an element]
An Adobe Commerce developer is using a view model within an existing block:
What are two ways to access the view model class in the template? (Choose two.)
To access a view model within an existing block, the developer can use either of the following ways:
$block->getData('view_model'): This method will return the view model object that is assigned to the argument name ''view_model'' in the layout XML file. For example:
<referenceBlock name=''blog_posts_list''>
In the template file, the developer can access the view model object by using:
$block->getData('view_model')
$block->getData('viewModel'): This method will return the view model object that is assigned to the argument name ''viewModel'' in the layout XML file. For example:
<referenceBlock name=''blog_posts_list''>
In the template file, the developer can access the view model object by using:
$block->getData('viewModel')
The following methods are not valid and will not work:
$block->viewModel(): This method does not exist and will cause an error.
$block->getViewHodel(): This method is misspelled and will cause an error.
By creating a Custom_Module, an Adobe Commerce Developer has implemented a new Page Builder viewport for tablet devices but the viewport's tablet selector button is missing.
The button .svg has been properly added to the path: CustomJ^odule/web/css/images/switcher/switcher-tablet .svg. How the developer would implement the viewport button icon?
A)
By setting the node icon in the theme's etc/view.xml file for the respective viewport configuration data.
B)
By setting the node button-image in the theme's etc/view.xml file for the respective viewport configuration data.
C) By adding the node image in the theme's etc/viewport.xml file for the respective viewport configuration data.
D)
By adding the node image in the theme's etc/viewport.xml file for the respective viewport configuration data.