-
Create Wordpress project using Local by Flywheel
-
Log in into wp-admin (projectURL/wp-admin)
-
Block the robots (
Settings -> Reading -> check search engine visibility) -
Download starter theme into folder:
Local Sites -> project-name -> app -> public -> wp-content -> themesfolder and rename it -
Activate new theme in the admin panel
Appearance -> Themesand delete default themes (leave one default theme just for backup) -
Delete all widgets from the right side of
Appearance -> Widgets -
Delete
Hello Worldpost fromPosts -
Delete
Sample PagefromPagesand create new PageHomepage -
Set
Homepagepage as the Front Page inSettings -> Reading -
Delete tagline in
Settings -> General -
Set Permalinks on the
Post nameoption,Settings -> Permalinks -
Create primary navigation in
Appearance -> Menus -
Install plugin ACF PRO (credentials on vivify passbolt) if needed
-
Install multilingual plugin WPML (credentials on vivify passbolt) if needed
-
For migrating and syncing database between environments use these plugins: github-updater, wp-sync-db, wp-sync-db-media-files-master
-
In the theme root folder change
screenshot.jpgwith screenshot of the project -
In the theme root folder run
npm install -
For compiling the css, run
gulp sass, for watching the changesgulp watch -
Create
mu-pluginsfolder inwp-contentfolder for registration of the custom post types
- On all environments (local, stage, production) install 3 plugins for DB syncing already mentioned above.
Tools -> Migrate db. InSettingstab add permissions forpushandpull(check both checkboxes on every environment). - From the tab
Connection infofrom stage i.e., copy API URL. Then, on local i.e., checkPushand past copied URL. With this, we'll copy local base to the stage. Optionally, checkMedia filesif we want to copy media's as well. - For copying files between environments we'll use git.
- After creating custom fields with ACF PRO, in
Custom fields -> Tools, generate PHP code, copy and paste it in the theme fileinc -> custom-fields.php. Be aware that every change done on the custom fields needs new generating and copying the same code. - Enjoy ;)