Skip to content

Instantly share code, notes, and snippets.

View geektutor's full-sized avatar

Sodiq Akinjobi geektutor

View GitHub Profile
@geektutor
geektutor / functions.php
Created April 16, 2018 13:58 — forked from jamiemitchell/functions.php
Add a Woocommerce cart icon with count in Genesis
<?php //* Do not include this opening php tag
//* Add Cart icon and count to header if WC is active
add_action( 'genesis_header', 'jmd_wc_cart_count' );
function jmd_wc_cart_count() {
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
$count = WC()->cart->cart_contents_count;
@geektutor
geektutor / woocommerce_checkout_fields.php
Created December 13, 2018 05:42 — forked from cryptexvinci/woocommerce_checkout_fields.php
Full list of fields in the array passed to woocommerce_checkout_fields.
/**
* Billing Checkout Fields
*/
billing_first_name
billing_last_name
billing_company
billing_address_1
billing_address_2
billing_city
billing_postcode
@geektutor
geektutor / gist:9cb509cc63262286fa6bfdac79ad412b
Created December 14, 2018 18:27 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@geektutor
geektutor / country-shortcode.php
Last active October 16, 2020 12:04 — forked from MatthewEppelsheimer/country-shortcode.php
WP Contact Form 7 shortcode with list of Countries
<?php
/*
List of countries to use with CF7
*/
?>