Skip to content

flaubert-dev/wp-api-starter-theme

Repository files navigation

WP API Starter Theme (BETA VERSION 1.0.0)

WordPress starter theme with WP API components and templates, Tailwind CSS, and a modern development workflow. This WordPress theme is interesting for local testing, studies and code improvements. Please do not use this theme in production, use these themes for student purposes.

Sponsors

WP API Starter Theme is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and products within the ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Flaubert Dev.

Features

Requirements

Make sure all dependencies have been installed before moving on:

Theme installation

Fork or download this WordPress theme in your themes folder. If you download by git clone, don't forget to remove the .git folder:

git clone git@github.com:flaubert-dev/wp-api-starter-theme.git

If you don't know if Gulp CLI and Yarn are already installed globally, run the command below:

npm list -g --depth=0

If Gulp CLI and Yarn are not installed globally, run the command:

npm install gulp-cli -g && npm install yarn -g

With Gulp CLI and Yarn already installed, run the command below:

yarn cache clean && yarn install && npx update-browserslist-db@latest

Linux and MacOs Users

Theme development

In the gulpfile.js file, modify the path of your development environment:

browserSync.init({
  proxy: 'http://localhost/success', // Change to your local development URL
  open: true // true will automatically open the browser on port 3000
});

Dev command

Log in as an Administrator on your WordPress. Use this command to watch at your php, css and js files:

yarn dev

Build command

To build the project use the command below. If you are not logged into WordPress, you will see that the css and js files have been minified:

yarn build

Theme structure

themes/wp-api-starter-theme/  
├── app/                           
│   ├── AcfJson/ # -> https://www.advancedcustomfields.com/resources/local-json/             
│   └── Templates/      
├── config/                
├── resources/         
│   ├── fonts/        
│   ├── images/        
│   ├── scripts/      
│   └── styles/          
├── templates/      
├── vendor/     
├── .gitattributes
├── .gitignore
├── 404.php # -> Wait... News will come in this file
├── archive.php      
├── category.php      
├── composer.json      
├── footer.php      
├── functions.php      
├── gulpfile.js      
├── header.php      
├── index.php          
├── LICENSE          
├── package.json        
├── page.php # -> Wait... News will come in this file
├── README.md       
├── readme.txt       
├── screenshot.png       
├── search.php # -> Wait... News will come in this file
├── single.php # -> Wait... News will come in this file
├── style.css                                      
├── style.min.css                                      
├── tailwind.config.js                    
├── tailwindcss.exe # -> https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.3.3      
├── template-wp-api-example-using-JS.php     
└── template-wp-query-example-using-PHP.php

Community

Keep track of development and community news.

  • Follow me on Linkedin
  • Also participate by collaborating with this project
  • Sponsors: None, for now...