-
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 -> themes
folder and rename it -
Activate new theme in the admin panel
Appearance -> Themes
and delete default themes (leave one default theme just for backup) -
Delete all widgets from the right side of
Appearance -> Widgets
-
Delete
Hello World
post fromPosts
-
Delete
Sample Page
fromPages
and create new PageHomepage
-
Set
Homepage
page as the Front Page inSettings -> Reading
-
Delete tagline in
Settings -> General
-
Set Permalinks on the
Post name
option,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.jpg
with 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-plugins
folder inwp-content
folder 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
. InSettings
tab add permissions forpush
andpull
(check both checkboxes on every environment). - From the tab
Connection info
from stage i.e., copy API URL. Then, on local i.e., checkPush
and past copied URL. With this, we'll copy local base to the stage. Optionally, checkMedia files
if 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 ;)