Title: Theme Image Block
Author: Happy Prime
Published: <strong>Ọ̀pẹ  16, 2025</strong>
Last modified: Èrèlé  20, 2026

---

Ṣàwárí àwọn plugin

![](https://s.w.org/plugins/geopattern-icon/theme-image-block.svg)

# Theme Image Block

 Láti ọwọ́ [Happy Prime](https://profiles.wordpress.org/happyprime/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/theme-image-block.1.1.1.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/theme-image-block/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/theme-image-block/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/theme-image-block/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/theme-image-block/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/theme-image-block/)

## Àpèjúwe

The Theme Image Block plugin allows you to register images from your theme and make
them available as blocks in the WordPress editor. This is useful for logos, icons,
and other images that are part of your themeÌtumọ̀ Yorùbá: ’s design system.

### Usage

### Registering Theme Images

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

    ```
    HappyPrime\ThemeImageBlock\register_theme_image(
        'happy-prime-logo',
        [
            'title' => 'Happy Prime Logo',
            'description' => 'The Happy Prime logo.',
            'alt' => 'Happy Prime',
            'path' => 'images/happy-prime-logo.svg',
            'width' => '300',
            'height' => '',
            'variations' => [
                'small' => [
                    'path'   => 'images/happy-prime-logo-small.svg',
                    'width'  => '100',
                    'height' => '100',
                ],
                'medium' => [
                    'path'   => 'images/happy-prime-logo-medium.svg',
                    'width'  => '200',
                    'height' => '200',
                ],
                'large' => [
                    'path'   => 'images/happy-prime-logo-large.svg',
                    'width'  => '300',
                    'height' => '300',
                ],
            ],
            'sizes' => '(max-width: 600px) 100vw, 300px',
        ]
    );
    ```

### 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.

    ```
    HappyPrime\ThemeImageBlock\register_theme_image_style(
        'hero',
        [
            'name'   => 'Hero',
            'width'  => 'clamp(10rem, 100vw, 60rem)',
            'height' => 'auto',
        ]
    );
    ```

## Àwọn ìdí

Plugin yìí pèsè 1 ìdí.

 *   Theme Image Display an image from the theme's images directory.

## Ìgbéwọlẹ̀

 1. Install and activate the plugin.
 2. Register theme images using the `register_theme_image()` function.
 3. Register theme image styles using the `register_theme_image_style()` function.
 4. Use the Theme Image block in the editor to insert registered images.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Theme Image Block” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe 
ìkópa sí plugin yìí.

Àwọn Olùkópa

 *   [ Happy Prime ](https://profiles.wordpress.org/happyprime/)
 *   [ Jeremy Felt ](https://profiles.wordpress.org/jeremyfelt/)
 *   [ slocker ](https://profiles.wordpress.org/slocker/)
 *   [ philcable ](https://profiles.wordpress.org/philcable/)

[Túmọ̀ “Theme Image Block” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/theme-image-block)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/theme-image-block/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/theme-image-block/), tàbí ṣe 
àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/theme-image-block/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/theme-image-block/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

### 1.1.1

 * Prevent fatal error on activation.
 * Improve HTML processing when rendering output.
 * Fix reference to renamed global JavaScript variable.
 * Fix textdomain mismatch.
 * Improve support for multiple theme image blocks in one editor view.

### 1.1.0

 * Initial release on wp.org.

### 1.0.0

 * Initial release.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.1.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **oṣù 5 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **Tó kéré sí 10**
 *  Ẹ̀yà WordPress ** 6.8 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **6.9.4**
 *  Ẹ̀yà PHP ** 7.4 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/theme-image-block/)
 * Àwọn àmì
 * [images](https://yor.wordpress.org/plugins/tags/images/)[media](https://yor.wordpress.org/plugins/tags/media/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/theme-image-block/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/theme-image-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/theme-image-block/reviews/)

## Àwọn Olùkópa

 *   [ Happy Prime ](https://profiles.wordpress.org/happyprime/)
 *   [ Jeremy Felt ](https://profiles.wordpress.org/jeremyfelt/)
 *   [ slocker ](https://profiles.wordpress.org/slocker/)
 *   [ philcable ](https://profiles.wordpress.org/philcable/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/theme-image-block/)