Skip to content

Instantly share code, notes, and snippets.

@akther80
akther80 / functions.php
Created November 16, 2017 08:34 — forked from ibndawood/functions.php
Electro - Remove availability in single product page
add_action( 'init', 'ec_child_remove_availability', 20 );
function ec_child_remove_availability() {
remove_action( 'woocommerce_single_product_summary', 'electro_template_loop_availability', 10 );
}
@akther80
akther80 / function.php
Created November 21, 2017 05:55 — forked from ibndawood/function.php
Electro Brands List Pages
if ( ! function_exists( 'electro_brands_list_element' ) ) :
function electro_brands_list_element( $atts, $content = null ){
extract(shortcode_atts(array(
'has_no_products' => false,
'orderby' => 'title',
'order' => 'asc',
), $atts));
$taxonomy_args = array(
'orderby' => $orderby,
@akther80
akther80 / functions.php
Created November 22, 2017 13:30 — forked from farookibrahim/functions.php
Electro remove handheld layout
add_filter( 'has_electro_mobile_header', '__return_false' );
add_filter( 'electro_enable_handheld_footer_bar', '__return_false' );