Skip to content

Instantly share code, notes, and snippets.

View DustinHartzler's full-sized avatar

Dustin Hartzler DustinHartzler

View GitHub Profile
add_action( 'init', 'custom_remove_footer_credit', 10 );
function custom_remove_footer_credit () {
remove_action( 'storefront_footer', 'storefront_credit', 20 );
add_action( 'storefront_footer', 'custom_storefront_credit', 20 );
}
function custom_storefront_credit() {
?>
function woo_logo () {
$settings = woo_get_dynamic_values( array( 'logo' => '' ) );
// Setup the tag to be used for the header area (`h1` on the front page and `span` on all others).
$heading_tag = 'span';
if ( is_home() || is_front_page() ) { $heading_tag = 'h1'; }
// Get our website's name, description and URL. We use them several times below so lets get them once.
$site_title = get_bloginfo( 'name' );
$site_url = home_url( '/' );
$site_description = get_bloginfo( 'description' );
.sticky-wrapper, .sd-sticky-navigation, .sd-sticky-navigation::before, .sd-sticky-navigation::after {
height: 92px !important;
}
.site-main ul.products li.product:nth-child(5n) {
width: 50%;
}
.site-main ul.products li.product:nth-child(3n) {
width: 25%;
}
.hero h1.section-title span {
color: white;
background-color: rgba(4, 0, 68, 0.8);
box-shadow: 0.618em 0 0 0 rgba(4, 0, 68, 0.8), -0.618em 0 0 0 rgba(4, 0, 68, 0.8);
-webkit-box-shadow: 0.618em 0 0 0 rgba(4, 0, 68, 0.8), -0.618em 0 0 0 rgba(4, 0, 68, 0.8);
}
#featured-slider .slide-content footer,
.post-date{
display: none;
}
@media only screen and (max-width: 767px) {
#header {
height: 100px;
}
#content {
padding-bottom: 0px;
}
}
@media only screen and (max-width: 540px){
#logo img {
max-width: 50%;
}
}
/*
* replace read more buttons for out of stock items
**/
if (!function_exists('woocommerce_template_loop_add_to_cart')) {
function woocommerce_template_loop_add_to_cart() {
global $product;
if (!$product->is_in_stock()) {
echo '<a href="'.get_permalink().'" rel="nofollow" class="outstock_button">Out of Stock</a>';
}
else
#logo img {
padding-left: 120px;
}
.searchform input.s, #searchform input#s {
width: 250px;
}