A custom WordPress plugin that adds a PDF icon to the Download
button for native File Blocks
in Wordpress.
- Download the plugin code and upload it to your WordPress installation's
wp-content/plugins
directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- In the WordPress admin area, go to 'WP-File-Block-Pdf-Icon' under the 'Settings' menu.
- Enter the custom class name you want to check for in the 'Class Names' field. It is advised to just save with the pre-input value for default File Blocks.
- Save the settings.
- The front-end script will check all posts for the presence of the custom class on page load. If the class is found, an error message will be logged to the console.
This plugin is licensed under the MIT License. See the LICENSE file for details.