Skip to content

miya0001/wordpress-generic-content-styles

Repository files navigation

WordPress Generic Content Styles

Build Status

This is a Sass based project for the styles of WordPress content.

How to use

Change directory into the your theme and then run following.

$ npm init
$ npm install gulp gulp-sass
$ npm install https://github.com/miya0001/wapuu-gallery-vr.git --save

Place gulpfile.js like following.

'use strict';

var gulp = require( 'gulp' );
var sass = require( 'gulp-sass' );

gulp.task( 'sass', function () {
  return gulp.src( 'node_modules/wordpress-generic-content-styles/sass/content-styles.scss' )
    .pipe( sass().on( 'error', sass.logError ) )
    .pipe( gulp.dest( './css/' ) );
} );

Run gulp.

$ gulp sass

Put the code like following into your theme's functions.php.

wp_enqueue_styles(
  'wordpress-generic-content-styles',
  get_stylesheet_directory_uri() . '/css/content-styles.css',
  array(),
  'v0.1.0'
);

How to contribute

$ git clone https://github.com/miya0001/wordpress-generic-content-styles.git
$ cd wordpress-generic-content-styles
$ npm install
$ atom .
$ npm run serve

Automated testing

$ bundle install --path vendor/bundle
$ npm test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published