This theme is used to generate the email content for the UCF Today and UCF Events emails sent out each week via Postmaster, and can also be used for managing other custom emails (with additional plugins). It also provides a barebones post template using the Athena Framework for one-off pages.
This theme is developed and tested against WordPress 5.3+ and PHP 7.3+.
These plugins must be activated for the theme to function properly.
These plugins are not technically required for this theme to function normally, but are generally expected to be installed for full functionality of the GMUCF site:
- Gravity Forms (for email request form)
- Gravity Forms + Custom Post Types (for email request form)
- Athena GravityForms Plugin (for email request form)
- UCF Email Editor Plugin (for custom emails)
- UCF Section Plugin (for custom emails)
- WP Mail SMTP (for form confirmations and Email CPT instant sends)
- Disable REST API, or equivalent plugin (to disable unused REST endpoints)
After installing this theme and all necessary dependencies, you should perform the following configuration steps:
- Make sure your site's timezone is configured appropriately under Settings > General. This step is required to ensure certain theme functionality works as expected. (EST time is UTC-4)
- Download this theme's ACF config file, and import field groups using the ACF importer under Custom Fields > Tools.
- If implementing the Request Email form: Download the Request Email Gravity Form config file, and import the file under Forms > Import/Export > Import Forms. You should then create a new page and include this form on it.
- Adjust site settings as necessary via the Customizer. All fields are expected to have a value; default values will be applied on empty fields (see
GMUCF_THEME_CUSTOMIZER_DEFAULTSinincludes/config.php).
Note that compiled, minified css and js files are included within the repo. Changes to these files should be tracked via git (so that users installing the theme using traditional installation methods will have a working theme out-of-the-box.)
Enabling debug mode in your wp-config.php file is recommended during development to help catch warnings and bugs.
- node v16+
- gulp-cli
-
Clone the UCF-GMUCF-Theme repo into your local development environment, within your WordPress installation's
themes/directory:git clone https://github.com/UCF/UCF-GMUCF-Theme.git -
cdinto the new UCF-GMUCF-Theme directory, and runnpm installto install required packages for development intonode_modules/within the repo -
Optional: If you'd like to enable BrowserSync for local development, or make other changes to this project's default gulp configuration, copy
gulp-config.template.json, make any desired changes, and save asgulp-config.json.To enable BrowserSync, set
synctotrueand assignsyncTargetthe base URL of a site on your local WordPress instance that will use this theme, such ashttp://localhost/wordpress/my-site/. YoursyncTargetvalue will vary depending on your local host setup.The full list of modifiable config values can be viewed in
gulpfile.js(seeconfigvariable). -
Run
gulp defaultto process front-end assets. -
If you haven't already done so, create a new WordPress site on your development environment, and install and activate theme dependencies.
-
Set the UCF GMUCF Theme as the active theme.
-
Make sure you've completed all theme configuration steps.
-
Run
gulp watchto continuously watch changes to scss and js files. If you enabled BrowserSync ingulp-config.json, it will also reload your browser when scss or js files change.