Skip to content

Installation and Setup

Brett Mason edited this page Nov 23, 2018 · 1 revision

Installation and setup

Installing the theme

Themes belong in your wp-content/themes folder. You can directly download and install the theme if you wish. Or, you can use the command line to do so.

First, you must switch to the proper folder:

# Go to the themes folder.
cd wp-content/themes

Then, clone the theme:

# Clone the theme.
git clone -b master git@github.com:brettsmason/luxe.git <theme-name>

After that, you need to make sure that you're in the proper folder to follow the next steps:

# Go the <theme-name> folder.
cd theme-name

Installing PHP dependencies

Luxe has the following dependencies, which must be installed for the theme to work:

That's why we need Composer. While still in the command line and at wp-content/themes/theme-name, type the following command:

composer install

Installing Node dependencies

Luxe has many Node dependencies that it uses for the build process. To install them, you can either use NPM or Yarn.

NPM command:

npm install

Yarn command:

yarn install