Skip to content

Instantly share code, notes, and snippets.

View DevinWalker's full-sized avatar
🌱
Coding for good

Devin Walker DevinWalker

🌱
Coding for good
View GitHub Profile
# custom login link
RewriteRule ^login$ http://localhost/whitelabel/wp-login.php [NC,L]
# custom login link
RewriteRule ^login$ http://localhost/whitelabel/wp-login.php [NC,L]
@DevinWalker
DevinWalker / .gitignore
Created September 25, 2012 01:51 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@DevinWalker
DevinWalker / jflow-demo-head.html
Last active December 15, 2015 18:59
Include the jFlow scripts in your document head - The first step to setting up any jQuery plugin is ensuring you have your necessary stylesheets and javascript included in your document. The best place is the head of your document head to ensure that all necessary scripts are loaded first by the browser.
<head>
<link href="styles/jflow.style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="scripts/jflow.plus.min.js" type="text/javascript"></script>
<script type="text/javascript">
@DevinWalker
DevinWalker / jflow-basic-markup.html
Created April 4, 2013 05:57
The jFlow markup - Copy and paste the following markup within your body tags in the appropriate DOM node.
<div id="sliderContainer">
<div id="mySlides">
<div id="slide1" class="slide">
<img src="images/jflow-sample-slide1.jpg" alt="Slide 1 jFlow Plus" />
<div class="slideContent">
<h3>You Asked, jFlow Delivered</h3>
@DevinWalker
DevinWalker / jflow-styles.css
Created April 4, 2013 06:01
Styles for the jFlow Slider demo
#sliderContainer { width: 940px; height: 300px; position: relative; border-top: 5px solid #999; border-bottom: 5px solid #999; margin: 0 auto; }
.slideContent { background:url("../images/contentBg.png") repeat scroll 0 0 transparent; position: absolute; bottom:0px; right:0px; padding: 10px; width: 920px; }
.slide h3 { font: 26px/1em 'Rokkitt', serif; color: #FFF; margin: 0 0 5px 0; }
.slide p { font-size: 14px; color: #FFF; margin: 0; }
.jFlowSlideContainer { overflow: hidden; }
@DevinWalker
DevinWalker / woocommerce-vitual-mark-complete.php
Created April 6, 2013 07:49
WooCommerce Mark Virtual Orders as Complete
//Mark Virtual Orders as Complete
add_filter( 'woocommerce_payment_complete_order_status', 'virtual_order_payment_complete_order_status', 10, 2 );
function virtual_order_payment_complete_order_status( $order_status, $order_id ) {
$order = new WC_Order( $order_id );
if ( $order_status == 'processing' &&
( $order->status == 'on-hold' || $order->status == 'pending' || $order->status == 'failed' ) ) {
$virtual_order = true;
@DevinWalker
DevinWalker / gravity-forms-roots.css
Created June 7, 2013 22:35
Gravity Forms Basic Styles for Responsive Sites using Roots Theme
/* Gravity Forms General */
.gform_fields { padding: 0; margin: 0 0 10px; }
#main .gform_fields { margin: 20px 0; }
.gform_fields li, #main .gform_fields li { list-style-type: none; padding: 0; margin: 0 0 15px; }
select { background: #fbfbfb; }
@DevinWalker
DevinWalker / gravity-forms_bootstrap
Last active November 28, 2023 20:35
Gravity Forms Twitter Bootstrap CSS Styles Turn OFF Gravity Forms CSS Turn On HTML5 See: http://roots.io/style-gravity-forms-with-bootstrap/
/* ------------------------------------
Gravity Forms
---------------------------------------*/
.gform_wrapper ul { padding-left: 0; list-style: none }
.gform_wrapper li { margin-bottom: 15px }
.gform_wrapper form { margin-bottom: 0 }
@DevinWalker
DevinWalker / functions.php
Last active May 13, 2017 16:11 — forked from dougedgington/functions.php
WooCommerce force SSL entire shop
<?php
/*
Author: Doug Edgington
Description: modified version of Woocomemrce SSL functionality, forces ssl on Woocommerce pages and two additional custom pages
*/
function dee_ssl_template_redirect() {
if ( ! is_ssl() ) {
if ( is_checkout() || is_account_page() || is_woocommerce() ) {