Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Jul 24, 2024
1 parent 61e5c8d commit 87cec4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object(FocalPointPicker\FocalPoint)#2796 (4) {
}
```

## Usage in your templates:
## Usage in your templates

### Object Position

Expand Down Expand Up @@ -111,9 +111,9 @@ $focus = fcp_get_focalpoint($imageID);
</div>
```

### WordPress attachment image
### Using `wp_get_attachment_image`

If you are making use of WordPress' function `wp_get_attachment_image($id)`, the plugin will automatically inject two css custom properties for you to use:
If you are making use of the WordPress function [`wp_get_attachment_image()`](https://developer.wordpress.org/reference/functions/wp_get_attachment_image/), the plugin will automatically inject a class `focal-point-image` and two custom css properties for you to use:

```diff
<img
Expand Down

0 comments on commit 87cec4a

Please sign in to comment.