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
input[type=text], | |
input[type=email], | |
input[type=tel], | |
textarea, | |
select { | |
width: 100%; | |
display: block; | |
border: 1px solid #1ada35; | |
background: #fff; | |
font: 300 22px/50px 'Oswald', sans-serif; |
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
<!-- The Markup --> | |
<a href="http://tpp.jwdmc.com/wp-content/uploads/2015/07/15-percent-off.jpg" class="print-link" rel="shadowbox" >Print Coupon</a> | |
// The JS / Jquery | |
$('.print-link').on('click', function(e) { | |
e.preventDefault(); | |
$source = $(this).attr('href'); | |
win = window.open($source,"_blank"); |
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
// the priority (3rd parameter) must be lower than the action that is being removed | |
add_action('woocommerce_single_product_summary','jwd_remove_title',4); | |
function jwd_remove_title() { | |
// the conditional must be inside a function | |
if (is_single()) { | |
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_title',5); | |
} | |
} |
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 global $woocommerce; ?> | |
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>" class="cart-link"> | |
Cart (<span><?php echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?></span>) | |
</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
<?php | |
$args = array( | |
'posts_per_page' => 7, | |
'post_type' => 'product', | |
'product_cat' => 'home-featured', | |
'meta_key' => 'home_featured_order', | |
'orderby' => 'meta_value_num', | |
'order' => 'DESC' | |
); |
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
$formUserchange.on('submit', function(e) { | |
e.preventDefault(); | |
var $newUser = $(this).find('input[name=new-username]').val(), | |
$url = $(this).attr('action'), | |
$method = $(this).attr('method'), | |
$data = { | |
'new-username' : $newUser | |
}; |
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 woo_remove_product_tabs( $tabs ) { | |
unset( $tabs['description'] ); // Remove the description tab | |
unset( $tabs['additional_information'] ); // Remove the additional information tab | |
unset( $tabs ); // Remove all tabs | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 97 ); |
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 | |
// global $product; // only define if necessary, on most templates it won't be | |
$terms = get_the_terms( $product->id, 'product_cat' ); |
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 global $woocommerce; ?> | |
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>" class="cart"> | |
<img src="<?php bloginfo('template_directory') ?>/images/cart.png" alt="Cart Icon"> | |
<span>Cart (<span id="cart-count"><?php echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?></span>)</span> | |
</a> |