AD0-E720 practice question 6 of 10
An Adobe Commerce developer needs to modify the width and height of all product images inside the theme Vendor/theme. What file inside the theme is responsible for these changes?
Full set: 50 questionsThe view.xml file is the primary configuration file within an Adobe Commerce theme responsible for defining the properties of product images and gallery widgets. To modify the width and height of product images, a developer must edit the nodes within this file. Each node, identified by an id and type, can have its and values specified. These configurations apply to various contexts, such as the product page, category listings, and shopping cart, ensuring consistent image sizing across the storefront.
A. Vendor/theme/etc/images.xml: This is not a standard Adobe Commerce configuration file for defining theme-level product image dimensions. Image properties are managed exclusively through view.xml.
C. Vendor/theme/etc/theme.xml: This file is used to declare a theme, specify its parent theme, and set its title. It does not contain configurations for image properties or dimensions.
1. Adobe Commerce Frontend Developer Guide, Configure images: "To configure image properties, you use the view.xml configuration file. This file is required for a theme." This section explicitly details how to use nodes within view.xml to set width, height, and other attributes. (Adobe Experience League, Frontend Developer Guide > Themes > Configure images).
2. Adobe Commerce Frontend Developer Guide, Theme configuration files: "A theme's view.xml file holds all media and image configurations for the storefront." This confirms view.xml as the central point for image configuration. (Adobe Experience League, Frontend Developer Guide > Themes > Technical aspects > Theme configuration files).
3. Adobe Commerce Frontend Developer Guide, Theme structure: This document outlines the purpose of key theme files. It specifies that etc/theme.xml is for theme declaration and etc/view.xml is for "Image configuration, including product image sizes, and so on." (Adobe Experience League, Frontend Developer Guide > Themes > Theme structure).
Keep practicing
Take the free AD0-E720 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E720 practice questions
- Question 1An Adobe Commerce developer is trying to remove a block using the
- Question 3An Adobe Commerce developer wants to completely overwrite _module. less of Orange_Checkou…
- Question 5An Adobe Commerce developer wants to apply a knockout binding to ato run a function, onCl…
- Question 8An Adobe Commerce developer wants to remove the default Wishlist and Compare Products blo…
- Question 9An Adobe Commerce developer is customizing buttons for a custom theme that inherits Magen…
- Question 10An Adobe Commerce developer wants to override the following Layout XML file in the theme …
