Skip to content

Instantly share code, notes, and snippets.

Craig Simpson craigsimps

Block or report user

Report or block craigsimps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
scss: {
'style': { /* Override default options by adding 'style' to our config. */
outputStyle: 'expanded',
sourceMap: false
},
'woocommerce': { /* Output filename */
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
scss: {
'style': { /* Override default options by adding 'style' to our config. */
outputStyle: 'expanded'
},
'woocommerce': { /* Output filename */
src: 'develop/scss/woocommerce.scss', /* Input file */
dest: 'css/', /* Output path. */
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
scss: {
'woocommerce': { /* Output filename */
src: 'develop/scss/woocommerce.scss', /* Input file */
dest: 'css/' /* Output path. */
},
'edd': { /* Output filename */
src: 'develop/scss/edd.scss', /* Input file */
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
remreplace: true
}
});
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
remmediaquery: false /* Turn off auto conversion of media queries to REMs. */
},
});
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
basefontsize: 10
},
});
View Gulpfile.js
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
/* Additional configuration */
},
});
View Gulpfile.js
'use strict';
var gulp = require('gulp'),
toolkit = require('gulp-wp-toolkit');
require('gulp-stats')(gulp);
toolkit.extendConfig({
theme: {
name: "Infinity Pro",
View functions.php
<?php
// Enqueue scripts and styles.
add_action( 'wp_enqueue_scripts', 'infinity_enqueue_scripts_styles' );
function infinity_enqueue_scripts_styles() {
wp_enqueue_style( 'infinity-fonts', '//fonts.googleapis.com/css?family=Cormorant+Garamond:400,400i,700|Raleway:700', array(), CHILD_THEME_VERSION );
wp_enqueue_style( 'infinity-ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
View Gulpfile.js
'use strict';
var gulp = require('gulp'),
toolkit = require('gulp-wp-toolkit');
require('gulp-stats')(gulp);
toolkit.extendConfig({
theme: {
name: "Infinity Pro",
You can’t perform that action at this time.