Code Monkey home page Code Monkey logo

hackney-works-wp's Introduction

Hackney Works WP theme

WordPress theme for Hackney Works.

It makes heavy use of custom post types and taxonomies, particularly:

  • courses, which can belong to curriculum areas and providers.
  • intakes, which belong to courses
  • vacancies, which can belong to sectors
  • workshops, which can belong to sectors
  • checklist items, which can belong to a course
  • testimonials, which can be added to courses and some pages

Developing locally

You need a Wordpress website up and running. Clone this repo into the wp-content/themes folder.

Then, activate it through the WP admin dashboard.

It expects Advanced Custom Fields to be installed.

It has some pre-configured custom fields in inc/custom-fields.php.

To make changes to JS and SCSS files you'll need to start up the Parcel bundler and Gulp:

npm i
npm run dev

It will watch for changes.

You can use moden JavaScript syntax (including JSX) and any imports supported by Parcel.

Editor blocks

The theme includes several custom blocks for the WP editor.

They're defined in /src/js/blocks and compiled into a second JS bundle that's included on the admin screens only.

Using it in production

Make sure that you run npm run build to create production JS and SCSS before deploying it to a live site.

Configuration

It's intended to be used with ACF's Google Map field. It needs a Google API key to be set. You can do it with a line like this in wp-config.php:

define("GOOGLE_CLIENT_KEY", "your_api_key_here");

Make sure you add it above the /* That's all, stop editing. Happy blogging! */ line.

Submitting applications

It looks for a JS environment variable SUBMIT_APPLICATION_ENDPOINT which is the API host applications will be posted to.

You can provide this with a .env file if you like.

You can't provide JS config using PHP define() statements.,

If you don't provide a value, it defaults to the Hackney Works staging site URL.

hackney-works-wp's People

Contributors

lbhomaral avatar huuhieudo avatar rarif12 avatar jhackett1 avatar

Stargazers

 avatar  avatar

Watchers

TPXimpact Limited avatar James Cloos avatar Chris Evans avatar  avatar  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.