Modernize WP Caption ShortCode
Customizes the output of the WP caption shortcode with <picture> element for different formats.
by bedas · github.com/tukutoi/modernize-wp-caption-shortcode
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/tukutoi/modernize-wp-caption-shortcode/archive/refs/heads/main.zipReadme
Modernize WP Caption ShortCode
Customizes the output of the WP caption shortcode with <picture> element for different formats.
Usage
- create a folder
mu-pluginsinside your WordPresswp-contentfolder (unless it exists already) - place the file
modernize-wp-caption-shortcode.phpinside the folder - ensure you have some logic implemented to generate WebP (or any other format you add to the code) separately