Picture Tag

Description

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.

Screenshots

  • Settings Page
    Customize paths for WebP and AVIF image directories.

Installation

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

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

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Picture Tag” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Picture Tag” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

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.