A simple Search & Filter application with Vue.js in a WordPress child theme
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: WordPress Search with Vue.js, spa, search, rest api, single-file components.
Requires WordPress: 4.9
Requires PHP at least: 5.6.0
A Single Page Search app integrated inside a child theme of the Twenty Seventeen WordPress theme implemented with Vue.js.
The intent is to help developers with a boilerplate single page app created with Vue.js inside a WordPress child theme.
The child theme registers a Custom Page Template Search Page Template
.
The Custom Page Template loads a Single Page Search App implemented with Vue.js
Twenty Seventeen
theme installedvuetwentyseventeen
child theme folder from the extract to the /wp-content/themes/
directoryThemes Menu
in WordPressvuetwentyseventeen
child theme is activated.Search Page Template
Search Page Template
and save the page.spa
directory using your system terminalnpm install
to install required packages in node_modules
npm run dev
http://localhost:8080/dist/build.js
in the wp_register_script()
inside vuetwentyseventeen_enqueue_spa_scripts()
of the includes/enqueue-scripts.php
file.npm run build
and enqueue it again.Note: You may need to modify the CSS to suit your theme.
spa/components/AppGetPosts.vue