• Stars
    star
    247
  • Rank 164,117 (Top 4 %)
  • Language
    JavaScript
  • Created about 9 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A react-based recipe theme for WordPress

Anadama

A react-based recipe theme for WordPress.

Want to try out the theme? Download or clone this repo into your /themes folder, then run a few npm scripts to install and build the javascript & CSS files. The process will look like this

git clone https://github.com/ryelle/Anadama-React anadama
cd anadama
npm install
npm run dev

Now you'll see a js/app.js file in the theme, and it will be available for you to switch to in wp-admin. If you're having trouble getting the theme active, please file an issue & I'll help you out.

If you don't have npm or gulp installed, you can find instructions on their websites: gulp, npm.

Setup

Since this is a more "experimental" theme, you'll need to have a few things set up before it'll work.

  1. You'll need the WP REST API plugin version 2.0-beta13. WP 4.4+ has the framework for the REST API, but the actual content of it still requires the plugin.
  2. You'll also need this WP-API Menus plugin. The REST API doesn't provide an endpoint for menus, so another plugin is necessary.
  3. Your permalinks will need to be set to /%year%/%monthnum%/%postname%/. Single-post/page views will not work without permalinks set.

Display & Features

The front page of this theme displays 10 categories (ordered by term ID, which corresponds to date created) and the 20 most recent posts in each category. It uses localStorage to hold posts for offline/faster response time.

This theme has no sidebars, widgets, or comments.

Known Issues/To Do

  • Sites that have no content won't appear to load, the loading message stays on-screen even after an empty server response.
  • Menu items have conditional classes in place, but they're not automatically applied (current page, parent, etc)
  • Work with Jetpack scripts to load (or not) when needed.
  • Make the recipe's "Print" button work (related to Jetpack scripts)
  • Responsive styles + a good print stylesheet for recipe pages
  • Cached data will stick around forever, maybe not the best idea for post list pages.
  • Category/Tag archives don't exist yet

Building the Javascript & CSS

Currently this project uses gulp to build a CSS file from sass/style.scss, and webpack by way of gulp to build the javascript file from js/index.js. There are 3 ways to build (the CSS is done the same in all 3, no minification there currently):

npm run dev

This builds a development version of app.js, along with a sourcemap.

npm run watch

This builds the development version, then watches the Sass and JS files for any changes to automatically re-build.

npm run build

This builds the "production" version of the code, and is only here as an example of how to set up a production build. I don't recommend running Anadama as it is in production without your own testing (browser, device, etc).

More Repositories

1

Foxhound

A text-focused blog theme for WordPress (in React)
JavaScript
350
star
2

wordpress-query-posts

A set of react & redux helpers for fetching posts from the WordPress REST API
JavaScript
42
star
3

SVG-Dashicons-Plugin

JavaScript
24
star
4

rmb-recipe-block

Gutenberg block for displaying recipes on your site 🥐🍲🥘🍪
JavaScript
22
star
5

WP-Dashboard-SVG

A demo of using an SVG sprite for the WordPress admin icons.
HTML
21
star
6

admin-color-schemes

Even more admin color schemes for WP admin
SCSS
20
star
7

flounder

A WordPress theme for bloggers which features colorful support for post formats and a clean, responsive layout.
CSS
19
star
8

WordPress

A mirror of the develop.git.wordpress.org repo to collaborate on a Dashicons SVG branch
PHP
14
star
9

theme-check

Theme Check plugin with a WP-CLI command (see cli branch)
PHP
11
star
10

allotrope

WordPress theme using backbone & WP-API
CSS
9
star
11

wordpress-query-page

JavaScript
8
star
12

our-import-example

Example WP-CLI command created to walk through how to import content
PHP
7
star
13

wordpress-query-term

JavaScript
7
star
14

grab-screenshots

Capture screenshots of the WordPress admin
JavaScript
7
star
15

adirondack

Another WordPress theme!
SCSS
5
star
16

wordpress-query-components

A set of query components & redux state reducers/actions/selectors for use with the WordPress REST API
JavaScript
5
star
17

wordpress-query-comments

JavaScript
5
star
18

Content-Generator

A demo content generator pulling text from wikipedia, and images from Pexels.
PHP
5
star
19

MeetupLogin

WordPress plugin to integrate Meetup.com users into your WP site
PHP
5
star
20

wp-core-color-list

JavaScript
4
star
21

WordCamp-Style-Import

Import the styles from another site on the WordCamp network
PHP
4
star
22

postcss-palettize-colors

PostCSS plugin to replace colors in a stylesheet with colors from a given palette.
JavaScript
4
star
23

ryelle-codes-2022

A block-based theme for ryelle.codes
HTML
4
star
24

One-Page-Layout

A quick plugin to manage "one-page" layouts in WordPress
PHP
4
star
25

Shortcode-Helper

Add a WYSIWYG button to create shortcodes
PHP
3
star
26

image-colors

PHP
3
star
27

umbra

CSS
3
star
28

grunt-wp-theme-check

Grunt plugin to run Theme Check CLI
JavaScript
3
star
29

queeromattic-flags

Create your own WordPress pride flag SVG
JavaScript
3
star
30

random-pokemon-cli

A silly little script that pulls down a random pokemon.
JavaScript
3
star
31

wordpress-query-menu

JavaScript
2
star
32

Post-Prompts

WordPress plugin to prompt you into more writing
PHP
2
star
33

wpcom-card-example

An example App demonstrating how to use wpcom.js to get data from the WordPress.com API
JavaScript
2
star
34

Meetup-Widgets

https://wordpress.org/plugins/meetup-widgets/
PHP
2
star
35

wc-custom-styles

A UI for customizing blocks without touching code.
JavaScript
2
star
36

ThemeCheck-API

PHP
1
star
37

query-test

Create and display SQL queries and performance based on WP_Query objects
PHP
1
star
38

museum

CSS
1
star
39

puerco

A WordPress theme for classy restaurants
PHP
1
star
40

theme-build-tools

Grunt tasks for creating a wp theme
JavaScript
1
star
41

Cucina

A recipe-blog focused WordPress theme
CSS
1
star
42

theme-directory-tests

PHP
1
star
43

a11y-smile

CSS
1
star
44

grainy-gradients

WordPress block plugin: A spacer block with a textured gradient background.
JavaScript
1
star
45

zip-project

A simple command to zip all files listed in package.json into a .zip
JavaScript
1
star
46

infinite-reader

Playground for displaying posts from a site using wp-api
JavaScript
1
star
47

UX-For-WP-Developers

WordCamp Boston 2013 Workshop: How to handle UX for plugin and theme developers. Covers settings, custom post types, custom taxonomies, etc.
JavaScript
1
star