Setting up a WordPress Website Locally
You may need to use a local version of a WordPress theme in order to make/test codebase changes, using LocalWP, you will be able to set up a local WordPress Environment with a few clicks. Before following the steps below, install LocalWP
Setup an Environment
- Click the + icon to create a new site
- Choose the
Create a new site
option - Name the site
- Used the
Preferred
setting orCustom
if you need to adjust something - Create a Dashboard login
- Click
Add Site
Import a Theme into the Environment
- Click the
Go to site folder
option within the environment - Navigate to
app > public
- Rename the
wp-content
folder - Create a symlink of the theme’s repo
- Drop the symlink’d folder into the local environment directory in step 2
- Rename the symlink’d folder to
wp-content
- Run
npm install
on the repo if you have not already to populate the theme
- Run
- Login to the local environment
- In the Appearance Panel, select the working theme
This post is licensed under CC BY 4.0 by the author.