Code Monkey home page Code Monkey logo

canaan_empty's Introduction

canaan-devleop WP theme starter KIT

This is a starter kit for wordpress theme and plugins devleop. It's a result of many projects and template that was built over the years.

steps to get strated

  1. mkdir ${name}

  2. cd ${name}

  3. wp core download

  4. rm -rf wp-content/plugins

  5. rm -rf wp-content/themes

  6. mkdir wp-content/plugins

  7. mkdir wp-content/themes

  8. git clone [email protected]:nemo369/canaan_empty.git temp

  9. rsync -vua --delete-after temp/ .

  10. rm -rf temp

  11. rm -rf .git

  12. composer install --no-dev --optimize-autoloader

  13. npm install

  14. npm run build

  15. mv example.gitignore .gitignore

  16. git init

Assets

I'm compilng all the theme assets using vite

JS:

check the Index.js file in canaan theme folder. the idea behind this structre is to gernate one big JS file that will be cached. each page will have a JS class that will be loaded only if a certain DOM elment is in the page.

CSS:

im using 1.Tailwind should be used before wrtiting any new lines of CSS

  1. Reset CSS completely
  2. SCSS for spliting files. have a look in the style.scss for better understaing of the structe.
  3. BEM

SVG:

with an svg.php file and a simple switch case

Meta Data

Using a Third party libray called Carbon Fields look at carbon.php and for example at carbon_post.php

Post Type

look at register_post_type.php file

Get Started

clone and paste all this content in a brand new WP instalation.

  • Make sure to add ๐Ÿ“ข
include dirname(__FILE__).'/canaan_conf.class.php';

to wp-config.php file ๐Ÿ“ข

then go to wp-content/theme/canaan and

  1. npm install
  2. composer install --no-dev --optimize-autoloader
  3. npm run dev

โค๏ธ

canaan_empty's People

Contributors

nemo369 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.