Linux 软件免费装

Picture Tag

开发者 artilab
更新时间 2024年12月25日 02:26
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

responsive images picture tag

下载

1.2.0 1.1.0 1.0.0 1.1.1

详情介绍:

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:

安装:

  1. Upload the plugin files to the /wp-content/plugins/picture-tag directory or install it directly from the WordPress Plugin Repository.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Configure the settings under "Settings > Picture Tag".

升级注意事项:

1.0.0 This is the first version of the plugin. Please report any issues or suggestions for improvement.

常见问题:

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 <picture> 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"]

更新日志:

1.2.0 1.1.1 1.1.0 1.0.0