This file contains hidden or 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 | |
// remove sorting dropdown | |
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); |
This file contains hidden or 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
@mixin font-smoothing($value: on) { | |
@if $value == on { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
@else { | |
-webkit-font-smoothing: subpixel-antialiased; | |
-moz-osx-font-smoothing: auto; | |
} | |
} |
This file contains hidden or 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
$baseline-px: 14px; | |
@mixin rem($property, $px-values) { | |
// Convert the baseline into rems | |
$baseline-rem: $baseline-px / 1rem * 1; | |
// Print the first line in pixel values | |
#{$property}: $px-values; | |
// If there is only one (numeric) value, return the property/value line for it. | |
@if type-of($px-values) == "number" { | |
#{$property}: $px-values / $baseline-rem; } |
This file contains hidden or 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 | |
add_action('admin_init', 'flush_rewrite_rules'); |
This file contains hidden or 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 | |
function remove_more_tag_link_jump($link) { | |
$offset = strpos($link, '#more-'); //Locate the jump portion of the link | |
if ($offset) { //If we found the jump portion of the link | |
$end = strpos($link, '"', $offset); //Locate the end of the jump portion | |
} | |
if ($end) { //If we found the end of the jump portion | |
$link = substr_replace($link, '', $offset, $end-$offset); //Remove the jump portion | |
} | |
return $link; //Return the link without jump portion or just the normal link if we didn't find a jump portion |
This file contains hidden or 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 | |
wp_enqueue_style( 'ie', get_template_directory_uri() . 'assets/css/ie.css', array(''), '' ); | |
$wp_styles->add_data( 'fysiodeaker-ie', 'conditional', 'lt IE 9' ) |
This file contains hidden or 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 | |
function woo_remove_tab($tabs) { | |
unset($tabs['reviews']); | |
unset($tabs['description']); | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_tab', 98); |
This file contains hidden or 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 | |
//phone number not required | |
add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 ); | |
function wc_npr_filter_phone( $address_fields ) { | |
$address_fields['billing_phone']['required'] = false; | |
return $address_fields; | |
} |
This file contains hidden or 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 | |
// Changes link destination of 'Continue Shopping' button on cart page | |
add_filter( 'woocommerce_continue_shopping_redirect', 'my_custom_continue_redirect' ); | |
function my_custom_continue_redirect( $url ) { | |
return 'http://mydomain.com/url'; | |
} |