چۈشەندۈرۈش
The Picture Tag plugin allows you to easily integrate responsive <picture>
tags into your WordPress site. This plugin adds support for generating modern image formats like WebP and AVIF, improving performance and SEO.
Features:
– A function for displaying images using the picture tag.
– Support for WebP and AVIF formats.
– Flexible settings for custom paths and image attributes.
– A shortcode [arti_picture]
for inserting responsive tags with customizable attributes.
ئورنىتىش
- Upload the plugin files to the
/wp-content/plugins/picture-tag
directory or install it directly from the WordPress Plugin Repository. - Activate the plugin through the ›Plugins‹ menu in WordPress.
- Configure the settings under «Settings > Picture Tag».
FAQ
-
Does this plugin require specific hosting features?
-
No, the plugin works on any WordPress site. However, to use WebP and AVIF formats, ensure your server supports these formats.
-
Can I customize the generated « tag?
-
Yes, the plugin provides options to configure custom paths and add attributes to images.
-
How do I add a screenshot to the media library?
-
To add a screenshot or image for use with the plugin:
1. Go to Media > Add New in your WordPress admin dashboard.
2. Upload the desired image (e.g., a screenshot).
3. Once uploaded, note the attachment ID of the image. You can find this in the image URL or by editing the image.
4. Use the attachment ID with the shortcode to display the image in<picture>
format.Example Shortcode:
[arti_picture id="123" size_1x="medium" size_2x="large" alt="Example screenshot" class="screenshot-image"]
باھالاشلار
بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.
تۆھپىكار ۋە ئىجادكار
«Picture Tag» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.
تۆھپىكار«Picture Tag» نى تىلىڭىزغا تەرجىمە قىلىڭ
ئىجادىيەتكە قىزىقامسىز؟
كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.
ئۆزگىرىش خاتىرىسى
1.3.1
- Improved performance by focusing only on local file operations
- Improved code readability with clearer documentation
- Fixed potential timeout issues when checking image formats
1.3.0
- Added support for custom data-* attributes in
[arti_picture]
shortcode. - Added support for custom data-* attributes in the
arti_the_image
function.
1.2.0
- Added translation support for multilingual use.
- Improved text domain loading for better localization.
- Fixed minor bugs and enhanced compatibility with the latest WordPress versions.
1.1.1
- Update documentation.
1.1.0
- Refactoring of the plugin structure to improve the ease of maintenance.
- Added
[arti_picture]
shortcode to display responsive<picture>
tags. - Added documentation on the use of shortcodes.
1.0.0
- Initial release.
- Integrated WebP and AVIF format support.