Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/proeung/tofu-wordpress
Tofu - A Starter Theme for WordPress
https://github.com/proeung/tofu-wordpress
Last synced: 5 days ago
JSON representation
Tofu - A Starter Theme for WordPress
- Host: GitHub
- URL: https://github.com/proeung/tofu-wordpress
- Owner: proeung
- License: gpl-2.0
- Created: 2017-06-19T19:22:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-05T19:43:32.000Z (about 7 years ago)
- Last Synced: 2024-11-07T16:12:17.649Z (about 2 months ago)
- Language: CSS
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![alt tag](https://github.com/proeung/tofu/blob/master/screenshot.png?raw=true)
# Tofu - A Starter Theme for WordPress #
Tofu is a Wordpress starter theme designed to keep things simple while providing template suggestion files and useful preprocess functions for your project. This is a theme that is not meant to use as a parent theme, however, feel free to remove or add components to fit your needs. This theme was formed from components pulled from underscores.
## Installation ##
1. Setup the location for your new starter-theme (eg. `/wp-content/themes`).
2. Find and replace the word "Tofu" with the desired name of your new starter theme.
3. Gulp is required to manage assets.
4. First, you will need to install NodeJS.
5. Install gulp with `npm install -g gulp` from the command line. On some setups, sudo may be required.
6. Run `npm install` in your theme directory.
7. Run `gulp` to compiled and watch your JS/CSS changes.
8. Set your website's default theme.
## Helper Functions ##
**How to render an image tag:**
```php
tofu_img($image_id, $image_size = 'img_style_name');
```HTML Output:
``` html
```**How to render an image tag with bLazy markup and `` tag:**
```php
tofu_img_lazy($image_id, $image_size = 'img_style_name');
```HTML Output:
``` html
```