Skip to content

Commit a79ab1f

Browse files
authored
Merge pull request magento#6995 from abrarpathan19/patch-95
How to place view.xml from parent and Blank theme
2 parents c75cf36 + b44911f commit a79ab1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/guides/v2.3/frontend-dev-guide/themes/theme-create.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ If the product image sizes of your theme differ from those of the parent theme,
148148

149149
1. Create the `etc` directory in your theme folder.
150150

151-
1. Copy the `view.xml` file from the `etc` directory of an existing theme (for example, from the Blank theme) to your theme's `etc` directory.
151+
1. Copy the `view.xml` file from the `etc` directory of the parent theme or copy it from the Blank theme. For example, copy `theme-frontend-blank/etc/view.xml` to your theme's `etc` directory.
152152

153153
1. Configure all storefront product image sizes in the `view.xml` file. For example, you can make the [category](https://glossary.magento.com/category) grid view product images square by specifying a size of 250 x 250 pixels:
154154

155155
```xml
156156
...
157-
<image id="category_page_grid" type="small_image">
158-
<width>250</width>
159-
<height>250</height>
160-
</image>
157+
<image id="category_page_grid" type="small_image">
158+
<width>250</width>
159+
<height>250</height>
160+
</image>
161161
...
162162
```
163163

0 commit comments

Comments
 (0)