ucf / ucf-page-assets-plugin
Provides the ability to add a custom stylesheet and/or javascript file to individual pages.
Package info
github.com/UCF/UCF-Page-Assets-Plugin
Type:wordpress-plugin
pkg:composer/ucf/ucf-page-assets-plugin
Requires
- composer/installers: ~1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-20 18:18:12 UTC
README
Provides the ability to add a custom stylesheet and/or javascript file to individual pages.
Description
Provides the ability to add a custom stylesheet and/or javascript file to individual pages or other registered post types.
Installation
Manual Installation
- Upload the plugin files (unzipped) to the
/wp-content/pluginsdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the "Plugins" screen in WordPress
- Configure plugin settings from the WordPress admin under "Settings > UCF Page Assets".
WP CLI Installation
$ wp plugin install --activate https://github.com/UCF/UCF-Page-Assets-Plugin/archive/master.zip. See WP-CLI Docs for more command options.- Configure plugin settings from the WordPress admin under "Settings > UCF Page Assets".
Changelog
1.0.6
Enhancements:
- Added composer file.
1.0.5
Enhancements:
- Modified filtering options for files that are selectable from the media library modal when choosing a CSS or JS file for a page/post. Both CSS and JS will now be filtered by their respective file extensions by default (to filter out other files with the
text/plaintype), and JS filtering now includes thetext/javascripttype. - Updated packages.
1.0.4
Bug Fixes:
- Fixed issue where css files and js files would not show up in the media library.
1.0.3
Bug Fixes:
- Corrected php warning where that is thrown when the global
$postobject is null.
1.0.2
Bugfixes:
- Added media library upload support for CSS and JS file types
1.0.1
Enhancements:
- Updated admin js logic to display asset filenames when a new file is selected
- Added mimetype filtering to the media library modal on asset fields (so only existing CSS files are shown when selecting a stylesheet, and JS files for the JS meta field)
Bugfixes:
- Fixed logic in
UCF_Page_Assets_Metabox::save_metabox()that prevented empty meta values from updating at all, which prevented the removal of css/js files - Added metabox display logic and a
delete_metadatahook to prevent invalid/removed attachments from being referenced and/or displayed on the frontend - Fixed plugin name in readme
- Fixed undefined index notice on New Post screen
- Fixed issue with admin js not being loaded on the New Post screen
1.0.0
- Initial release
Upgrade Notice
n/a
Installation Requirements
None
Development & Contributing
NOTE: this plugin's readme.md file is automatically generated. Please only make modifications to the readme.txt file, and make sure the gulp readme command has been run before committing readme changes.