Skip to content

Instantly share code, notes, and snippets.

View cobbman's full-sized avatar
🏠
Working Remotely

William cobbman

🏠
Working Remotely
View GitHub Profile
.gform_wrapper ul {
@extend .list-unstyled;
}
.gform_wrapper li {
@extend .form-group;
}
.gform_wrapper form {
margin-bottom: 0;
@cobbman
cobbman / Gitignore for WordPress
Last active July 30, 2020 11:58 — forked from redoPop/.gitignore
gitignore template for wordpress sites. Place it in the root directory or where WordPress is installed. Default tracks wp core files. Has option to ignore everything.
###############################################################################
## ##
## GIT IGNORE FOR WORDPRESS SITES ##
## ------------------------------ ##
## By: BigWilliam <hello@bigwilliam.com> ##
## Last Modified: 2016-06-16 ##
## ##
## License: MIT - aka you can use/modify this how you want :) ##
## ##
###############################################################################
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@cobbman
cobbman / functions.php
Last active May 30, 2018 18:14
WooCommerce - Show min - max prices for variations, rather than the min price only
/**
* This code should be added to functions.php of your theme
**/
//This changes the "From:" price on the products page to a Rent-Buy value instead.
// ***** It ALSO checks to see if the product is on sale, and displays the sale price instead of the top variable price
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
function custom_variation_price( $price, $product ) {
$price = '';