Skip to content

Commit dd0b5fc

Browse files
committed
Minor content fixes
1 parent 95f5003 commit dd0b5fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

website/blog/2022-04-25-using-assets.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Using assets in a project
33
description: Step-by-step guide on how to add assets like images or icons to your theme.
44
slug: using-assets
55
authors: iobrado
6-
date: 2022-05-02
6+
date: 2022-04-28
77
tags: [eightshift, boilerplate, assets, images, icons]
88
hide_table_of_contents: false
99
---
@@ -50,7 +50,7 @@ If you recall from a previous blog post about [Modifying Blocks](/blog/modifying
5050

5151
> If you don't have it in your project, be sure to read our blog post about adding blocks and components by using [WP CLI](/blog/adding-blocks-wpcli).
5252
53-
Open **_src/Blocks/components/quote/manifest.json_** and you'll see that all icons used by the component are defined inside `icons` as key-value pairs. Key represents the name that we will use to fetch the icon, while the value is SVG code.
53+
Open **_src/Blocks/components/quote/manifest.json_** and you'll see that the icon used by the component is defined inside `resources` as a key-value pair. Key represents the name that we will use to fetch the icon, while the value is SVG code.
5454

5555
```json
5656
"resources": {
@@ -80,7 +80,6 @@ wp boilerplate use_component --name=icon
8080
If you include the Icon component inside a block, you will have the option to choose between multiple icons defined in the manifest. Another way to render SVGs from the Icon component is by using the `Components::render` helper method:
8181

8282
```php
83-
<?php
8483
echo Components::render(
8584
'icon',
8685
[

0 commit comments

Comments
 (0)