WordPress Vue.js Multistep Form

Overview

WordPress Vue.js Multistep Form

Universal ACF PRO based multistep form implementation

Wordpress + Vue.js

This form is created with Vue.js and it fully prepared to be easily installed to your project. You can use this repo in two ways:

  1. Start from installation of whole theme
  2. Implement form following the instructions below

⚙️ Implementation Instructions

  • Firstly, you should have a Node.js installed on your environment. You can install it following the setup instructions from the Node.js site.
  • To build the form app you should have a npm package manager installed on your environment. npm can be installed during Node.js installation. To check the version of npm run npm -v in a command line.

Theme installation

  1. Clone the current repo on your machine
  2. Create local database and setup connection settings in wp-config.php
  3. Check is ACF PRO plugin active
  4. Check is multistep theme choosed as a site theme
  5. To build the form app, go to wp-content/themes/multistep/js/multistep-form/multistep and run npm run build
  6. Now form can be connected to your templates

Connection to the existing project

  1. Check is ACF PRO plugin installed
  2. Connect styles and scripts from functions.php
  3. Add script to your header.php (or another heading template)

<script>
  const themeName = ''
  const themeString = document.createElement('span')
  themeString.id = 'theme-name'
  themeString.style.display = 'none'

  const pageWrapElement = document.querySelector('#page')
  if (pageWrapElement) {
    pageWrapElement.before(themeString)
  }
script>

Script will set your theme name to the global js variable

  1. Copy multistep-form.php to the template-parts folder
  2. Clone multistep-form folder to the /{theme_name}/js/ directory. There should be the file multistep-rewrite.js that will rewrire media src's in Vue app
  3. Add acf-json folder to the root of your project.

⚠️ PAY ATTENTION! ACF PRO json setting can rewrite your previous ACF fields settings. If you have already created fields, clone the data from multistep fields json file to your ACF json file row by row.

  1. Finally, build the app using npm run build in /{theme_name}/js/multistep-form/multistep directory
  2. Now form can be connected to your templates
You might also like...
WordPress Framework based on parent theme

Cherry Framework The most delicious WordPress framework Fully responsive design, easy install, steady updates, great number of shortcodes and widgets,

A better way to create WordPress themes.

Runway Framework for WordPress Visit the Runway website: RunwayWP.com A better way to create WordPress themes. Runway was built for creating WordPress

The easiest to use WordPress option framework.

Titan Framework The easiest to use WordPress options framework. Titan Framework allows theme and plugin developers to create admin pages, options, met

🚀WordPress Plugin Boilerplate using modern web techs like TypeScript, SASS, and so on... on top of a local development environment with Docker and predefined GitLab CI for continous integration and deployment!
🚀WordPress Plugin Boilerplate using modern web techs like TypeScript, SASS, and so on... on top of a local development environment with Docker and predefined GitLab CI for continous integration and deployment!

WP React Starter: WordPress React Boilerplate DEPRECATED: WP React Starter was a "research project" of devowl.io for the development of our WordPress

 📦    A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.

create-guten-block is zero configuration dev-toolkit (#0CJS) to develop WordPress Gutenberg blocks in a matter of minutes without configuring React, w

Examples for extending WordPress/Gutenberg with blocks.

Gutenberg Examples Examples for extending Gutenberg with plugins which create blocks. See also: Gutenberg developer documentation Installation Gutenbe

Documents WordPress Classic Editor integration points and their Gutenberg equivalents

Gutenberg Migration Guide This repository documents WordPress Classic Editor customization points and their Gutenberg equivalents (if such exist). Its

The easiest way to develop and release Gutenberg blocks (components) for WordPress

Contents Install Comparison with competition Future Plans Usage Creating a Block Install npm install gutenblock -g This is a Gutenberg plugin creator

Create WordPress themes with beautiful OOP code and the Twig Template Engine
Create WordPress themes with beautiful OOP code and the Twig Template Engine

By Jared Novack (@jarednova), Lukas Gächter (@lgaechter), Pascal Knecht (@pascalknecht), Maciej Palmowski (@palmiak_fp), Coby Tamayo (@cobytamayo), Up

Owner
null
A curated list of Awesome WordPress Theme, Plugins and Framework development Resources and WordPress Communities.

Awesome WordPress A curated list of Awesome WordPress Theme, Plugins and Framework development Resources and WordPress Communities. Inspired by bayand

Dropndot Limited 91 Dec 26, 2022
The Pronamic WordPress Basecone plugin allows you to connect your WordPress installation to Basecone.

Pronamic WordPress Basecone The Pronamic WordPress Basecone plugin allows you to connect your WordPress installation to Basecone. Table of contents Au

Pronamic 1 Oct 19, 2021
A WordPress plugin to suspend WordPress sites automagically. Simple and lightweight, no annoying ads and fancy settings.

Suspend WP A WordPress plugin to suspend WordPress sites automagically. Simple and lightweight, no annoying ads and fancy settings. ?? Demo (coming so

Waren Gonzaga 3 Nov 15, 2021
Twenty Twenty-Two, the default WordPress theme that will launch with WordPress 5.9.

Twenty Twenty-Two Welcome to the development repository for the default theme that will launch with WordPress 5.9. About Twenty Twenty-Two is designed

null 414 Nov 28, 2022
Easy handle APlayer on WordPress. A shortcode for WordPress to using APlayer.

Description Easy handle APlayer on WordPress. A shortcode for WordPress to using APlayer. Support [audio] tag, compatible with AMP. Requirement WordPr

Karl Chen 24 Nov 3, 2022
WordPress plugin that lets you use Discourse as the community engine for a WordPress blog

WP Discourse Note: the wp-discourse plugin requires >= PHP-5.4.0. The WP Discourse plugin acts as an interface between your WordPress site and your Di

Discourse 497 Dec 10, 2022
WordPress & TypeScript. Simple starter template for WordPress projects

WordPress & TypeScript. Simple starter template for WordPress projects that want to use TypeScript in combination with @wordpress/scripts

Make it WorkPress 11 Sep 27, 2022
Simple WordPress plugin to learn how to understand WordPress Crons and the Action Scheduler library.

Simple WordPress plugin to learn how to understand WordPress Crons and the Action Scheduler library. Import Jamendo playlists with tracks in WordPress posts.

Pierre Saikali 3 Dec 7, 2022
A PHP client for Wordpress websites that closely implement the XML-RPC WordPress API

Wordpress XML-RPC PHP Client A PHP client for Wordpress websites that closely implement the XML-RPC WordPress API Created by Hieu Le MIT licensed. Cur

Hieu Le 112 Nov 10, 2022
Automattic 10.7k Jan 2, 2023