A WordPress theme written in Vue.js for developers who wants to:
- develop WordPress with Vue.js only
- use wordpress as like a headless CMS
- make frontend / backend on the same host
- develop website blazing fast in local using Hot reloading
This theme is inspired and forked from VueWordPress Theme Starter, make it simpler and some packages upgraded.
- Hot reloading(using browsersync) for local development
- Written inTypeScript
- Pinia for state management
- vue-meta for SEO
- Axios for API requests
- Vue Router integrated
- Sass integrated
- base project built by create-vue
-
make your local wordpress environment.
there are many tools like local, bitnami, XAMPP, and so on. -
Clone the repo inside to your
wp-content/themes/
directory. -
run
npm ci
-
Copy
.env.sample
to.env
and edit settings.
EditVITE_WEBSITE_NAME
to your site name. It is used for meta tag in yor site.
If you want to change directory name, please editTHEME_DIRECTORY_NAME
. -
Navigate to the theme directory in your terminal and run
npm install
-
run
npm run dev
for development/hot reloading -
Activate the theme in your WordPress settings.
-
Update your permalink settings
(Settings -> Permalinks)
to be "Day and name".
You can change settings by editingrouter/index.js
. -
when website is ready for deployment, run
npm run build
and deploytheme-dir
to yourwp-content/themes/
directory in your server.
(Don't forget to activate the theme!) -
That's it!