Standard Wordpress template for Vine Street Interactive
Clone this repo into your working directory:
git clone git@github.com:vinestreet/vsi_wp_template.git .
This repo has the Wordpress Core setup as a git submodule.
Initialize the wordpress core submodule:
git submodule update --init
This will checkout the wordpress master branch. This branch is latest development version of wordpress and is often unstable. To checkout a stable version of wordpress, find the latest branch before master on the Wordpress Core. As of this writing, the latest stable branch is 3.2-branch.
cd into /core and checkout the stable branch:
git checkout 3.2-branch
Upgrading the wordpress core is now as simple as checking out a new branch... that's awesome!
make sure php has write permissions to the http directories
/core/wp-admin/install.php
Installing wordpress will create a wp-config.php file.
Move core/wp-config.php up one directory level to the http root directory.
We now need to redirect the wordpress content directories (themes, plugins, and uploads) to the http root directory. Add the following to wp-config.php just before the the call to wp-settings
/* Move wp-content - must be set before call to 'wp-settings'*/
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST']);
In the wordpress general settings, remove /core from the site url. This tells wordpress to make the root url the home page.
Based on the HTML5 Reset Wordpress Theme
The HTML5 Reset Wordpress theme is a blank theme based on the HTML5 Reset templates. It's a great empty slate upon which to build your own HTML5-based Wordpress themes.
In addition to all the standard Wordpress elements and classes, we have added the code required so that the single post template conforms with the hNews microformat.
- A style sheet designed to strip initial files from browsers, meaning you start off with a blank slate.
- Easy to customize -- remove whatever you don't need, keep what you do.
- Analytics and jQuery snippets in place
- Meta tags ready for population
- Empty mobile and print style sheets, including blocks for device orientation
- Modernizr.js http://www.modernizr.com/ enables HTML5 compatibility with IE (and a dozen other great features)
- IE-specific classes for simple CSS-targeting
- iPhone/iPad/iTouch icon snippets
- Lots of other keen stuff...