Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 15, 2023
1 parent a61eb7a commit 0fe51a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

**⚒️⚒️⚒️ Note: This plugin is under development. Disruptive changes may be made without notice. We recommend that you do not use this plugin on your production site. ⚒️⚒️⚒️**

WordPress plugin that adds settings to the Image block to display different images depending on the width of the screen on the front end.
WordPress plugin that adds settings to the Image block to display different images depending on the width of the screen.

## Screenshot

Expand Down
2 changes: 1 addition & 1 deletion enable-responsive-image.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Enable Responsive Image
* Description: Adds settings to the Image block to display different images depending on the width of the screen on the front end.
* Description: Adds settings to the Image block to display different images depending on the width of the screen.
* Requires at least: 6.3
* Requires PHP: 7.4
* Version: 1.0.0
Expand Down
14 changes: 7 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WordPress plugin that adds settings to the Image block to display different images depending on the width of the screen on the front end.
WordPress plugin that adds settings to the Image block to display different images depending on the width of the screen.

== Description ==

Enable Responsive Image adds settings to the Image block to display different images depending on the width of the screen. You can add multiple images and set media queries and resolution for each image. On the front end side, if the screen width matches the conditions of that media query, it will switch to the corresponding image.
Enable Responsive Image adds settings to the Image block to display different images depending on the width of the screen. You can add multiple images and set media queries and resolution for each image. If the screen width matches the conditions of that media query, it will switch to the corresponding image.

== Installation ==

Expand All @@ -21,17 +21,17 @@ Enable Responsive Image adds settings to the Image block to display different im

== Frequently Asked Questions ==

= How does this plugin work on the frontend? =
= How does this plugin work? =

This plugin rewrites the HTML markup for the image block rendered on the front end. Wrap the img element with a picture element, and add source elements with srcset and media attributes inside the picture element based on the settings of the added image.

= What filters can I use? =
= Even if I switch the screen width or device on the editor, it does not switch to the set image. =

You can find a list of the available filters in the [Github readme](https://github.com/t-hamano/enable-responsive-image#filters).
On the editor side, images do not switch by default. Click the "Enable responsive image preview" button on the block toolbar.

= Even if I switch the screen width or device on the editor, it does not switch to the set image. =
= What filters can I use? =

Switching images according to screen width is currently only effective on the front end. Switching on the editor side does not work due to technical or performance issues. It may be supported in the future.
You can find a list of the available filters in the [Github readme](https://github.com/t-hamano/enable-responsive-image#filters).

== Screenshots ==

Expand Down

0 comments on commit 0fe51a9

Please sign in to comment.