Title: Theme Image Block
Author: Happy Prime
Published: <strong>2025(&#101;)k&#111; abendua&#114;&#101;&#110; 16(&#97;)</strong>
Last modified: 2026(&#101;)k&#111; otsaila&#114;&#101;&#110; 20(&#97;)

---

Bilatu pluginak

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

# Theme Image Block

 [Happy Prime](https://profiles.wordpress.org/happyprime/)-(r)en eskutik

[Deskargatu](https://downloads.wordpress.org/plugin/theme-image-block.1.1.1.zip)

 * [Xehetasunak](https://eu.wordpress.org/plugins/theme-image-block/#description)
 * [Berrikuspenak](https://eu.wordpress.org/plugins/theme-image-block/#reviews)
 *  [Instalazioa](https://eu.wordpress.org/plugins/theme-image-block/#installation)
 * [Garapena](https://eu.wordpress.org/plugins/theme-image-block/#developers)

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

## Deskripzioa

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’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',
        ]
    );
    ```

## Blokeak

Plugin honek 1 blokea hornitzen du.

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

## Instalazioa

 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.

## Berrikuspenak

Ez dago berrikuspenik plugin honentzat.

## Laguntzaileak eta Garatzaileak

“Theme Image Block” software librea da. Ondoko pertsonek egin dizkiote ekarpenak
plugin honi.

Laguntzaileak

 *   [ 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/)

[Itzul zaitez Theme Image Block zure hizkuntzara.](https://translate.wordpress.org/projects/wp-plugins/theme-image-block)

### Garapena interesatzen zaizu?

[Araka kodea](https://plugins.trac.wordpress.org/browser/theme-image-block/), begiratu
[SVN biltegia](https://plugins.svn.wordpress.org/theme-image-block/) edo harpidetu
[garapen erregistrora](https://plugins.trac.wordpress.org/log/theme-image-block/)
[RSS](https://plugins.trac.wordpress.org/log/theme-image-block/?limit=100&mode=stop_on_copy&format=rss)
bidez.

## Aldaketen loga

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

## Meta

 *  Version **1.1.1**
 *  Azken eguneraketa **duela 3 hilabete**
 *  Instalazio aktiboak **10 baino gutxiago**
 *  WordPress bertsioa ** 6.8 edo handiagoa **
 *  **6.9.4** (e)raino probatuta.
 *  PHP bertsioa ** 7.4 edo handiagoa **
 *  Language
 * [English (US)](https://wordpress.org/plugins/theme-image-block/)
 * Etiketak
 * [images](https://eu.wordpress.org/plugins/tags/images/)[media](https://eu.wordpress.org/plugins/tags/media/)
 *  [Ikuspegi aurreratua](https://eu.wordpress.org/plugins/theme-image-block/advanced/)

## Balorazioak

No reviews have been submitted yet.

[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/)

## Laguntzaileak

 *   [ 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/)

## Laguntza

Zerbait duzu esateko? Laguntza behar?

 [Ikusi laguntza foroa](https://wordpress.org/support/plugin/theme-image-block/)