This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (max-width: 768px) { | |
/* Target mobile devices only */ | |
ul.products li.product { | |
width: 48%; | |
clear: both; | |
float: left; | |
} | |
ul.products li.product:nth-child(2n) { | |
clear: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.left-sidebar .content-area { | |
margin-left: 0; | |
margin-right: 0; | |
width: 74%; | |
} | |
.page-template-template-fullwidth-php .content-area, | |
.page-template-template-homepage-php .content-area, | |
.storefront-full-width-content .content-area { | |
margin-left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="text-align: center; background: #000; color: #fff; padding: .53em; font-weight: bold;"> | |
<span style="margin: 0 1em;">Check out our new Jackets!</span> | |
<span style="margin: 0 1em;">Get 25% off your first order!</span> | |
<span style="margin: 0 1em;">Free shipping on all orders over $100!</span> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'storefront_menu_toggle_text', 'jk_storefront_menu_toggle_text' ); | |
function jk_storefront_menu_toggle_text( $text ) { | |
$text = __( 'Navigation' ); | |
return $text; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'storefront_custom_logo' ); | |
function storefront_custom_logo() { | |
remove_action( 'storefront_header', 'storefront_site_branding', 20 ); | |
add_action( 'storefront_header', 'storefront_display_custom_logo', 20 ); | |
} | |
function storefront_display_custom_logo() { | |
?> | |
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="site-logo-link" rel="home"> | |
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png" alt="<?php echo get_bloginfo( 'name' ); ?>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jk_variable_product_price( $price ) { | |
global $product; | |
$product = new WC_Product_Variable( $product ); | |
$min_price = $product->get_variation_price( 'min', true ); | |
$max_price = $product->get_variation_price( 'max', true ); | |
// Hide the range if the min/max price doesn't match | |
if ( $min_price !== $max_price ) { | |
$price = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'jk_customise_storefront' ); | |
function jk_customise_storefront() { | |
// Remove the storefromt post content function | |
remove_action( 'storefront_loop_post', 'storefront_post_content', 30 ); | |
// Add our own custom function | |
add_action( 'storefront_loop_post', 'jk_custom_storefront_post_content', 30 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'subscribe_and_connect_networks_list', 'jk_change_social_links_markup' ); | |
function jk_change_social_links_markup( $list ) { | |
global $subscribe_and_connect; | |
$settings = $subscribe_and_connect->get_settings(); | |
$networks = Subscribe_And_Connect_Utils::get_networks_in_order( $settings['connect']['networks'], $settings['connect']['networks_order'] ); | |
$list = ''; | |
if ( 0 < count( $networks ) ) { | |
foreach ( $networks as $k => $v ) { | |
if ( ! isset( $v['url'] ) || '' == $v['url'] ) continue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'zephyr_header_gravatar', '__return_false' ); |