A simple WordPress Plugin that allows content managers to add an alert to the top of a site.
- Advanced Custom Fields
Download this package and upload it to your site. From there, you can cd
into the plugin itself and make any changes you need.
If you want to change/edit the ACF fields, simply remove the $acf_files
array and associated foreach
loop, and upload the JSON files yourself. You will need to update the index.ts
file and class-header-alert.php
to handle any field changes.
- Run
npm i
to install the dependencies - Run
npm run start
to start the development server, and/or - Run
npm run build
to bundle your code and use the minified code on your WordPress site.
- Release!