This is a custom WordPress theme for Christian Media International (CMI). The goal of CMI is to reach the world with the gospel in this generation. The theme name is taken from that mission statement.
The theme is completely custom and is built with Carbon Fields from HTML Burger. The development is being led by Tim Brennan with design by Brandon McCurdy. The technical documentation that is specific to this theme is located in the wp-content/themes/thisgeneration
directory. Please reference that for specific functionality questions, install, setup and running this project locally.
Follow these steps to run this project locally:
- Download a fresh copy of WordPress to your local machine in your project or websites directory.
cd
into the root folder ofyour/project/directory/
andgit clone git@github.com:tbrennan77/thisgeneration.git
- Run a database update from the
/Migrations
directory to get the latest version of the database. If you use phpMyAdmin or similar you can download the latest copy from the/migrations
directory and upload that into you database via the phpMyAdmin Import tool. - Edit the
wp-config.php
file to point to your specific database (ielocalhost
with yourusername
andpassword
). - Refer to the technical documentation in the
wp-content/themes/thisgeneration
directory for instructions on running the project locally. The project is designed to be run viayarn
but can be run using most 3rd party tools likeMAMP
,WAMP
or similar.
TODO: add details here on Git
and collaborating...
- Push to GitHub
- Push to Staging read this for the automatic git deploy setup
This theme is built around the amazing Carbon Field library from our friends and project partners at htmlBurger. Carbon Fields is much more developer-centric than Advanced Custom Fields (ACF) or similar custom fields libraries that may exist. With Carbon Fields the custom fields are defined via PHP and not an admin UI. So while there may be less control over the general setup there is much more flexibility and customizations than is possible with ACF. Additionally changes are part of the Git history. Below are some of the initial custom fields that are built into this project:
The logos can be updated directory by replacing these two files:
- Header logo -
/wp-content/themes/thisgeneration/resources/images/logo.png
- Footer logo -
/wp-content/themes/thisgeneration/resources/images/logo-circle.png
The header shows a standard WordPress menu location and a button.
The menu is managed from WordPress menus. The button is managed from Theme options
- The footer shows three menu locations, socials, copyright text and optionally another logo on top.
- It also shows a background image.
- The menu locations are managed from WordPress menus
- The social icon links, copyright text and background image are managed from Theme options
- Manage header, footer and socials
- The callout shown at the bottom of blog pages
- You can optionally add scripts to header and footer (no need for additional plugin for this)
To edit the blue text in the top part of the single post page and the excerpt in the blog listing, edit the text in the excerpt section to the right in the post edit page
Use many different sections to build a page.
Has a checkbox to show or hide the additional footer logo.
The [year] shortcode shows the current year
Example usage:
The current year is [year] .