@@ -25,41 +25,46 @@ Simply add a [post-receive hook](http://help.github.com/post-receive-hooks/) to
25
25
26
26
### Installation
27
27
28
- ### web-base-template
29
-
30
- 1 . Download or clone web-base-template
31
-
32
- * ` git clone git://github.com/jquery/web-base-template.git `
33
-
34
28
#### HOSTS
35
29
36
30
1 . Add a ` plugins.jquery.com.dev ` entry in /etc/hosts
37
31
38
32
* ` 127.0.0.1 plugins.jquery.com.dev `
39
33
34
+ #### web-base-template
35
+
36
+ 1 . Download or clone web-base-template
37
+
38
+ * ` git clone git://github.com/jquery/web-base-template.git `
39
+
40
40
#### WordPress
41
41
42
42
1 . Install and run a web server (such as Apache), PHP, and MySQL.
43
43
44
44
2 . Follow http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
45
45
46
- 3 . Redirect your WordPress install to use the web-base-template's theme and config (replacing "[ YourWordPressInstallDirectory] " with the actual name of the directory where you installed WordPress)
47
- * ` rm -rf [YourWordPressInstallDirectory]/wp-content `
48
- * ` ln -s web-base-template/wordpress/wp-content wordpress/wp-content `
46
+ 3 . Move ` wordpress/wp-config.php ` to ` wp-config.php ` and add the following:
47
+
48
+ define( 'WP_CONTENT_DIR', dirname( ABSPATH ) . '/web-base-template' );
49
+ define( 'WP_CONTENT_URL', 'http://plugins.jquery.com.dev/web-base-template ' );
50
+
51
+ 4 . Copy ` wordpress/index.php ` to ` index.php ` and add update the require at the bottom to be:
52
+
53
+ require('./wordpress/wp-blog-header.php');
49
54
50
55
#### WordPress config
51
56
52
- From http://plugins.jquery.com.dev/wp-admin/
57
+ From http://plugins.jquery.com.dev/wordpress/ wp-admin/
53
58
54
- 1 . Activate the plugins-jquery-com theme
59
+ 1 . Update Site Address
55
60
56
- * Select Appearance -> Themes
57
- * Under plugins- jquery- com, select 'Activate'
61
+ * Select Settings -> General
62
+ * Set Site Address to http:// plugins. jquery. com.local
58
63
59
- 2 . Activate the jQuery Slugs plugin
64
+ 2 . Activate the plugins-jquery-com theme
60
65
61
- * Select Plugins
62
- * Under jQuery Slugs , select 'Activate'
66
+ * Select Appearance -> Themes
67
+ * Under plugins-jquery-com , select 'Activate'
63
68
64
69
3 . Set Custom Structure for Permalinks
65
70
0 commit comments