A responsive WordPress theme for ucf.edu, built off of the Athena Framework.
This theme is developed and tested against WordPress 5.3+ and PHP 7.4.x+.
These plugins must be activated for the theme to function properly, and/or to satisfy core feature requirements for ucf.edu.
- Advanced Custom Fields PRO
- Athena Gravity Forms
- Gravity Forms
- Query Terms by Post Type
- Redirection
- UCF Alert Plugin
- UCF College Custom Taxonomy
- UCF Degree Custom Post Type
- UCF Degree Search Plugin
- UCF Departments Taxonomy
- UCF Resource Search
- UCF Rest Menus
- UCF Section
- UCF Spotlight
- UCF Tuition and Fees
These plugins provide features that are extended or modified by the theme; they are generally expected to be activated with the theme but are not technically required.
- Advanced Custom Fields: Read only
- UCF Academic Calendar Plugin
- UCF Charts Plugin
- UCF Events
- UCF Footer
- UCF News
- UCF Pegasus List Shortcode
- UCF Post List Shortcode
- UCF Social Plugin
- UCF Weather Shortcode
- Yoast SEO
These plugins add desirable features, some of which are environment-specific for ucf.edu, but are not technically required to use this theme.
- Athena Shortcodes
- Automatic Section Menu Shortcode
- Page Links To
- UCF Content Scheduler
- UCF Page Assets
- Varnish Dependency Purger or Varnish as a Service
- WP-Mail-SMTP
- WP Apple Touch Icons
- WP Allowed Hosts
- WP Shortcode Interface
- Ensure that menus have been created and assigned to the Header Menu and Footer Menu locations. Other sites on your environment that depend on the main site header navigation and/or the UCF Footer plugin should be configured to reference these menus' REST API endpoints.
- Import field groups (
dev/acf-fields.json
) using the ACF importer under Custom Fields > Tools. - Ensure that webfonts have been properly configured to a Cloud.Typography CSS Key that allows access to your environment.
- Create and set a static front page under Settings > Reading.
- Create a redirect group with at least 1 redirect rule in the Redirection plugin for the Main Site/Alert Switchover.
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 Main-Site-Theme repo into your local development environment, within your WordPress installation's
themes/
directory:git clone https://github.com/UCF/Main-Site-Theme.git
-
cd
into the new Main-Site-Theme directory, and runnpm install
to 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
sync
totrue
and assignsyncTarget
the base URL of a site on your local WordPress instance that will use this theme, such ashttp://localhost/wordpress/my-site/
. YoursyncTarget
value will vary depending on your local host setup.The full list of modifiable config values can be viewed in
gulpfile.js
(seeconfig
variable). -
Run
gulp default
to 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 Main Site Theme as the active theme.
-
Make sure you've completed all theme configuration steps.
-
Run
gulp watch
to 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.