Get Ready
- register domain somewhere
- set up domain in HG account as an add-on domain (if not the main domain)
- set up mysql db and db user on HG. For user, don’t forget the check all privileges
- point registrar to HG
- set up and install /bin
WordPress
- go to wordpress.org and download current zip to local machine
- upload zip to HG
- go to the top level dir (ex: /home1/martha/www/berkeleycycleworks.com) on HG and unzip WP
- rename wordpress to wp
- COPY wp/index.php to / , edit it and add “/wp” before the blogheader thing
- hit the new site in a browser and answer the DB setup questions
- remove wp-config-sample.php
- set in wp-config.php
- /* begin Martha's favorite debug settings */
- define( 'WP_DEBUG', true ); // NOTE: WITHOUT THIS the less plugin will not recompile. Keep true during development.
- define( 'SAVEQUERIES', true );
- define( 'WP_DEBUG_LOG', true );
- error_reporting(0);
- @ini_set('display_errors', 0);
- define('WP_DEBUG_DISPLAY', false);
- /* end Martha debug */
/* begin Martha's favorite debug settings */ define( 'WP_DEBUG', true ); // NOTE: WITHOUT THIS the less plugin will not recompile. Keep true during development. define( 'SAVEQUERIES', true ); define( 'WP_DEBUG_LOG', true ); error_reporting(0); @ini_set('display_errors', 0); define('WP_DEBUG_DISPLAY', false); /* end Martha debug */ - in wp-admin / general set up the site and wp url and save
- in wp-admin / general clear out site subtitle and save
- in WP admin settings/ permalinks, change to postname based links and save
- in wp admin set admin email to martha@trumpetvine.com
- in wp admin / reading check discourage search engines
- at top level create robots.txt and put in:
- User-agent: *
- Disallow: /
- Disallow: *component*
User-agent: * Disallow: / Disallow: *component*
- remove all themes except the last default (and active) theme
- test site
Parent Theme
- from the themes dir:
- git clone https://github.com/martham/trumpetvine-framework.git
- mv trumpetvine-framework .. (?? double check this)
- cd trumpetvine-framework
git clone https://github.com/martham/trumpetvine-framework.git mv trumpetvine-framework .. (?? double check this) cd trumpetvine-framework
- if have UNIX access do:
- rm page.php
- ln -s page-with-title.php page.php
- rm index.php
- ln -s page-no-title.php index.php
- else do:
- cp page-with-title.php page.php
- cp page-no-title.php index.php
if have UNIX access do: rm page.php ln -s page-with-title.php page.php rm index.php ln -s page-no-title.php index.php else do: cp page-with-title.php page.php cp page-no-title.php index.php- activate trumpetvine-foundation and test
activate trumpetvine-foundation and test
cp phpinfo.php to “www” dir
Child Theme
- in the themes dir:
- git clone https://github.com/martham/trumpetvine-child.git
- mv trumpetvine-child CHILD_THEME_NAME_HERE
- cd CHILD_THEME_NAME_HERE
- rm page.php
- ln -s ../trumpetvine-framework/page.php page.php
- cp page.php front-page.php
- edit front-page.php and update Template name to Home Page
- cp ../trumpetvine-framework/footer.php .
- cp ../trumpetvine-framework/header.php .
git clone https://github.com/martham/trumpetvine-child.git mv trumpetvine-child CHILD_THEME_NAME_HERE cd CHILD_THEME_NAME_HERE rm page.php ln -s ../trumpetvine-framework/page.php page.php cp page.php front-page.php edit front-page.php and update Template name to Home Page cp ../trumpetvine-framework/footer.php . cp ../trumpetvine-framework/header.php .
- if using Components CPT:
- uncomment out that section in child functions.php
- copy TF 404.php to child theme, uncomment the component URL, and in the DB create the /component/404-text page
- SAVE PERMALINKS
- edit style.css in child theme, update description and theme name (do not change template – thats the parent name!)
- If customizing the login screen, uncomment out that style sheet enqueue in the enqueueing PHP file
- review child functions.php – any optional features to uncomment?
- activate child theme and test
Custom Front page (if applicable)
- create a WP page and set the template to Home Page
- in WP Settings/Reading, set home pg to newly created page
Git
- in child theme dir, delete .git* dirs and do a gitmakerepo
- rm README
- create private repo on github
-
- cd /wp
- gitmakerepo
- confirm the following line is in .gitignore:
- *trumpetvine-framework*
- git remote add origin https://github.com/martham/CHILD.git
- git add *
- git commit -m 'initial commit'
- git push -u origin master
cd /wp gitmakerepo confirm the following line is in .gitignore: *trumpetvine-framework* git remote add origin https://github.com/martham/CHILD.git git add * git commit -m 'initial commit' git push -u origin master
- On macbook cd to Sites
- create CHILD.dev dir and cd there
- git clone https://github.com/martham/CHILD_REPO.git
- move up one level the repo dir and it’s .git dir
Plugins
See Plugins for more notes on plugins
- install, configure and test backupbuddy
- stash
- file limits
- email if no backup in X days
- schedule daily Full
- install , configure and test wordfence notes here
- install gravity forms
- install wp-less plugin
- install changeuser plugin
- install Show Current Template plugin
- install TinyMCE Advanced plugin and configure:
- uncheck Enable the editor menu
- rm font size
- rm font family
- add justify
- add underline
- confirm “tables” is there
- rm blockquote
- add strikethrough
- add copy and paste
- install Yoast SEO
- enable XML sitemap (w/ disable for Components)
- review which post tiles it applies to
- review which admin screens to include it on
- install Postman if necessary
- install Google Analytics plugin, if necessary
- install custom admin bar plugin (for quick links menu)
- install admin columns plugin
- install duplicate post plugin from wordpress.org
- install ubermenu3 plugin
- configure ubermenu (see https://trumpetvine-framework.com/ubermenu/)
- activate akismet (it’s a bit obfuscated these days – from the plugins alert section log into wordpress.com as martha, go through the “basic” set and when asked to pay move price slider to 0 – a key is then emails and back in the admin start over and paste it in)
- rm hello dolly plugin
- configure backups
Woocommerce
- install Admin Columns – WooCommerce add-on plugin
Admin
- in WP admin delete sample page and post
- create a main and mobile menu and assign them to the Primary and Mobile menu locations
- create a test page (About?) and add it to each menu. Test
- add First and Last name for martha user acct and set admin color scheme
- Create a “404 Text” page (or component) w/ url “/404-text”
- set up client user, incl:
- color scheme
- in Pages
- Screen options
- adjust total displayed per page
- turn off Yoast (if applicable)
- turn on revs
- turn on discussions
- confirm discussion off by default
- Screen options
- in Posts
- Screen options
- adjust total displayed per page
- turn off Yoast (if applicable)
- turn on revs
- turn on discussions
- turn on comments
- confirm discussion on by default
- Screen options
- Custom Post Types (incl Components)
- Screen options
- adjust total displayed per page
- turn off Yoast (if applicable)
- turn on revs
- turn on discussions
- confirm discussion off by default
- Screen options
Other
- on Macbook add to versions script – in 2 places!


