Wordpress theme for Recovery Dharma NYC
Find a file
2021-08-04 11:11:15 -04:00
assets decrease mandala final opacity to .25 2021-08-04 10:44:26 -04:00
content-templates streamlined & improved css for smaller compiled css file and more efficient styling 2021-08-03 12:42:29 -04:00
dist decrease mandala final opacity to .25 2021-08-04 10:44:26 -04:00
page-templates initial commit; POC dev based off wp-73k theme 2021-07-25 07:16:35 -04:00
src front page progress 2021-08-03 20:04:38 -04:00
.gitignore initial commit; POC dev based off wp-73k theme 2021-07-25 07:16:35 -04:00
404.php initial commit; POC dev based off wp-73k theme 2021-07-25 07:16:35 -04:00
composer.json initial commit; POC dev based off wp-73k theme 2021-07-25 07:16:35 -04:00
composer.lock initial commit; POC dev based off wp-73k theme 2021-07-25 07:16:35 -04:00
custom-functions.php cleaning up some of the custom styling 2021-07-29 18:46:27 -04:00
footer.php updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00
front-page.php updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00
functions.php front page progress 2021-08-03 20:04:38 -04:00
header.php updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00
index.php updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00
package-lock.json updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00
package.json revert mandala final opacity above md to .33, increment version 2021-08-04 10:39:54 -04:00
postcss.config.js initial commit; POC dev based off wp-73k theme 2021-07-25 07:16:35 -04:00
README.md fix README 2021-08-04 11:11:15 -04:00
screenshot.png change screnshot perms 2021-08-04 08:53:50 -04:00
searchform.php cleaning up some of the custom styling 2021-07-29 18:46:27 -04:00
style.css revert mandala final opacity above md to .33, increment version 2021-08-04 10:39:54 -04:00
svgo.config.js updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00
webpack.config.js updating to v1.0.3, 2021-08-04 2021-08-04 07:46:55 -04:00

RDNYC WordPress Bootstrap 5/PurgeCSS Theme

The WordPress theme for recoverydharma.org, based on Webpack 5, Bootstrap 5, and some development conveniences.

Originally forked from WP 73k, itself forked from WP Tailwind

Development Requirements

How to get started

  1. Clone or download the project into your themes directory (./wp-content/themes)
  2. Run composer install
  3. Run npm install
  4. Set environment variables for BrowserSyncPlugin to the domain/ports you need (see webpack.config.js for variables needed).
  5. Run npm run start to begin development server, npm run dev for simple dev build, npm run prod for a production build, or npm run build to build both dev & prod concurrently.

SVGs

Optimization

Images placed in assets/images will be copied to dist/images -- however, SVGs can be optimized by placing them in assets/raw and importing them in main.js, e.g.:

import '../raw/rdnyc-logo.svg';

This will output an optimized version to dist/images with svg- prefix; these can be used per below:

Using optimized SVGs

SVG images can be implemented two ways:

  • A normal <img src="<?php echo get_template_directory_uri() . '/dist/images/svg-roll-mandala.svg'; ?>" ... > tag
    • This cannot be colored but preserves SVG styling
    • Since resource is loaded separately, it can be cached.
  • An inline SVG using the inline_svg( $svg_name, $atts ) function in custom-functions.php -- see that file for supported $atts array keys.
    • This can be colored from parent element
    • SVG class requires {{class-placeholder}} for 'svg_class' $atts key to work
    • Since resource is inline, cannot be cached.