Difference between revisions of "Breakout Procedure"

From GLMWiki
Jump to: navigation, search
Line 1: Line 1:
 +
__TOC__
  
 
== Creating A New Theme ==
 
== Creating A New Theme ==

Revision as of 14:25, 15 March 2018

Creating A New Theme

Breakout starts with setting up a new theme to work with.

Head into your /var/www/server/ or /var/www/html/ folder. Note that <newsitename> must fit the naming convention (currently all lowercase) in the repo (currently http://cvs2.gaslightmedia.com/gitweb/)

git clone git@cvs2:WP-Themes/<newsitename>

This should create a new repo, and a folder by that name containing a .git folder.

Find a theme that is most similar to this new theme, maybe there is something similar in navigation or page structure - the closer the better. Whether you find a similar theme or not, use the newest relevant one available.

cd <newsitename>
rsync -arv --exclude=.git ../<oldsitename>/ .

Make sure nothing odd is going on like node-modules or bower-components being included

git status 

Change the theme name to <newsitename>, edit the description, change version to 0.0.0

vim styles.css

Create initial commit

git add .
git commit -m "Initial commit"
git push
git flow init 

This should leave you on develop branch. Your next step may be to create a local wordpress site, set this theme as its theme, and get to work on breakout.

Breakout

Profit