Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The Theme Image Block plugin allows you to register images from your theme and m

Theme images should be registered using `HappyPrime\ThemeImageBlock\register_theme_image()`. This is likely best done on the `init` or `after_setup_theme` action.

```php
<pre><code>
HappyPrime\ThemeImageBlock\register_theme_image(
'happy-prime-logo',
[
Expand Down Expand Up @@ -56,13 +56,13 @@ HappyPrime\ThemeImageBlock\register_theme_image(
'sizes' => '(max-width: 600px) 100vw, 300px',
]
);
```
</code></pre>

### Registering Theme Image Styles

Theme image styles should be registered using `HappyPrime\ThemeImageBlock\register_theme_image_style()`. This is likely best done on the `init` or `after_setup_theme` action.

```php
<pre><code>
HappyPrime\ThemeImageBlock\register_theme_image_style(
'hero',
[
Expand All @@ -71,7 +71,7 @@ HappyPrime\ThemeImageBlock\register_theme_image_style(
'height' => 'auto',
]
);
```
</code></pre>

## Changelog

Expand Down