Skip to content

Instantly share code, notes, and snippets.

View jameskoster's full-sized avatar
🍕

James Koster jameskoster

🍕
View GitHub Profile
@jameskoster
jameskoster / functions.php
Created May 9, 2016 08:14
Storefront remove handheld footer bar
add_action( 'init', 'jk_remove_storefront_handheld_footer_bar' );
function jk_remove_storefront_handheld_footer_bar() {
remove_action( 'storefront_footer', 'storefront_handheld_footer_bar', 999 );
}
@jameskoster
jameskoster / functions.php
Created February 5, 2016 13:04
Galleria - Disable masonry
add_action( 'wp_enqueue_scripts', 'jk_disable_masonry', 999 );
function jk_disable_masonry() {
wp_dequeue_script( 'masonry' );
}
@jameskoster
jameskoster / functions.php
Created January 18, 2016 10:16
Storefront - remove sticky order review feature
add_action( 'wp_enqueue_scripts', 'jk_remove_sticky_checkout', 99 );
function jk_remove_sticky_checkout() {
wp_dequeue_script( 'storefront-sticky-payment' );
}
@jameskoster
jameskoster / style.css
Created September 14, 2015 12:17
Storefront - Remove navigation icon
.main-navigation ul li a:before {
display: none;
}
@jameskoster
jameskoster / functions.php
Last active May 22, 2021 17:07
Outlet - Remove homepage categories
add_action( 'init', 'jk_remove_homepage_categories', 99 );
function jk_remove_homepage_categories() {
remove_action( 'storefront_page', 'outlet_homepage_navigation', 5 );
remove_action( 'storefront_page', 'outlet_homepage_content_wrapper', 6 );
remove_action( 'storefront_page', 'outlet_homepage_content_wrapper_close', 30 );
}
@jameskoster
jameskoster / gist:3ea6afb05b1e174bb05f
Created July 15, 2015 14:19
Storefront Reviews Shortcode
[storefront_reviews title="Look at these reviews!" columns="2" number="4" scope="specific-product" product_id="70" layout="style-2" carousel="1" gravatar="1"]
@jameskoster
jameskoster / style.css
Created June 18, 2015 09:35
Storefront - Remove active link border
a:focus,
.focus a {
outline: none !important;
}
@jameskoster
jameskoster / functions.php
Created June 10, 2015 11:05
Add static content to the Storefront header
add_action( 'storefront_header', 'jk_storefront_header_content', 40 );
function jk_storefront_header_content() { ?>
<div style="clear: both; text-align: right;">
Have questions about our products? <em>Give us a call:</em> <strong>0800 123 456</strong>
</div>
<?php
}
@jameskoster
jameskoster / style.css
Last active February 23, 2021 15:35
Storefront - Primary navigation wrapper styling
@media screen and (min-width: 768px) {
.jk-primary-navigation {
clear: both;
margin-left: -9999px;
margin-right: -9999px;
padding-left: 9999px;
padding-right: 9999px;
background-color: #000;
}
@jameskoster
jameskoster / functions.php
Created June 1, 2015 09:14
Storefront - add primary navigation wrapper
add_action( 'storefront_header', 'jk_primary_navigation_wrapper', 45 );
add_action( 'storefront_header', 'jk_primary_navigation_wrapper_close', 65 );
function jk_primary_navigation_wrapper() {
echo '<section class="jk-primary-navigation">';
}
function jk_primary_navigation_wrapper_close() {
echo '</section>';
}