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
.enews-widget input[type=email], | |
.enews-widget input[type=text] { | |
border: 1px solid #eee; | |
max-width: calc(38% - 20px); | |
float: left; | |
} |
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
<a class="button" href="#">read more</a> |
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
Don't miss the new seasons 2017 look book!<div class="button"><a href="#">learn more</a></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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
// Hide trailing zeros on prices. | |
add_filter( 'woocommerce_price_trim_zeros', 'wc_hide_trailing_zeros', 10, 1 ); | |
function wc_hide_trailing_zeros( $trim ) { | |
return true; | |
} |
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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Loads Pinterest pin-it script | |
add_action( 'wp_enqueue_scripts', 'wps_load_scripts' ); | |
function wps_load_scripts() { | |
if ( is_product() ) { | |
wp_enqueue_script( 'pin-it', '//assets.pinterest.com/js/pinit.js', array('jquery'), null ); | |
} |
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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Display field value on the order edition page | |
add_action( 'woocommerce_admin_order_data_after_billing_address', 'wps_select_checkout_field_display_admin_order_meta', 10, 1 ); | |
function wps_select_checkout_field_display_admin_order_meta($order){ | |
echo '<p><strong>'.__('Delivery option').':</strong> ' . get_post_meta( $order->id, 'daypart', true ) . '</p>'; | |
} |
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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
case 'clothing': | |
return __('Order your Clothes', 'your_theme_text_domain' ); | |
break; | |
case 'hoodies': | |
return __('buy your Hoodie', 'your_theme_text_domain' ); | |
break; |
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
/* Sidebar | |
---------------------------------------------------------------------------------------------------- */ | |
.content-sidebar .content, | |
.sidebar-content .content { | |
width: 100%; | |
} | |
.content-sidebar .sidebar-primary, | |
.sidebar-content .sidebar-primary { | |
width: 100%; |
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
//* Force full-width-content layout setting | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); |