Skip to content

Instantly share code, notes, and snippets.

@shrinkray
shrinkray / setup.php
Created January 25, 2021 14:48
Enqueue Child Theme CSS from Task Runner Webpack Bundler
/** Enqueue Child Theme JavaScript
* Function adds JS after other plugins
@created for a child theme named Mowtown Ecommerce
@parent is Shopical Pro from AF Themes
*/
function enqueue_after_wc() {
// vars
@shrinkray
shrinkray / functions.php
Last active January 25, 2021 19:32
Add modular function partials to the function.php for a customized WordPress child theme
/**
* Theme Includes
*
* The $theme_includes array determines the code library included in your theme.
* Add or remove files to the array as needed. Supports child theme overrides.
* @parent shopical pro from AF Themes
*
* Please note that missing files will produce a fatal error.
*
*/
@shrinkray
shrinkray / .gitignore
Last active March 9, 2021 21:22
Ignore all except theme and plugins for public root repos
# .gitignore file for WordPress. Ignores everything except theme and plugins.
# Located in the root folder
# based on https://gist.github.com/jdbartlett/444295
# Broad capture
/*
# Host and php files
*wp-*.php
@braddalton
braddalton / front-page.js
Created February 25, 2018 00:47
Digital Pro Adjust The Height of Front Page Hero Image https://wp.me/p1lTu0-hmt
/**
* This script adds the jquery effects to the front page of the Digital Pro Theme.
*
* @package Digital\JS
* @author StudioPress
* @license GPL-2.0+
*/
jQuery(function( $ ){
@justalever
justalever / Gulpfile.js
Created February 13, 2017 21:36
A gulpfile for my typical WordPress starter theme
"use strict";
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
newer = require('gulp-newer'),
sourcemaps = require('gulp-sourcemaps'),
imagemin = require('gulp-imagemin'),
browserSync = require('browser-sync').create(),
reload = browserSync.reload,