GithubHelp home page GithubHelp logo

madrilene / wp-excellent Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 1.49 MB

Starter for classic PHP WordPress theme. Based on the workflow suggested by Andy Bell's buildexcellentwebsit.es.

License: Other

JavaScript 8.10% CSS 36.15% PHP 55.61% Hack 0.14%
every-layout tailwindcss wordpress-theme wordpress-starter-theme buildexcellentwebsites wordpress

wp-excellent's Introduction

wp-excellent

Starter for classic PHP WordPress theme. Based on the workflow suggested by Andy Bell's https://buildexcellentwebsit.es/.

Contents

Using this

Edit CSS and JS in _resources. Fonts and images in assets. For production run production build and upload in your theme folder:

  • assets
  • core
  • css
  • js
  • template-parts
  • Wordpress PHP files
  • screenshot.jpg
  • style.css

Install dependencies

- npm install

Working with browser-sync

Creates a dev server (browser-sync) with hot reload on localhost:3000, pointing to the domain created by LocalWP. The domain (eg "wp-excellent.local", "localhost:10028", etc.) must correspond to the "site host" created by Local. Change both occurrences of "localhost:10028" in the scripts section of package.json:

"browser-sync": "browser-sync start --proxy \"localhost:10028\" --host=\"localhost:10028\" --no-inject-changes --files=\"./\"",

I might change that in the future, as LocalWP now offers hot reload out of the box. But for now it only watches wp-content/plugins and wp-content/themes for changes to .css files.

npm start

Creating a production build

npm run production

Credits

Andy Bell Andy recently came up an approach that incorporates Tailwind CSS into his methodology.

Heydon Pickering I really like Heydon's approaches and recommend reading his books.

Tailwind

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.