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
add_action( 'init', 'ec_child_remove_product_item_star_rating', 10 ); | |
function ec_child_remove_product_item_star_rating() { | |
remove_action( 'woocommerce_after_shop_loop_item_title', 'electro_template_loop_rating', 70 ); | |
} |
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
jQuery(document).ready(function( $ ){ | |
$( '.off-canvas-navigation-wrapper .navbar-toggle-hamburger' ).on( 'click', function() { | |
$('body').toggleClass( "off-canvas-active" ); | |
} ); | |
}); |
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
if ( ! function_exists( 'techmarket_store_directory' ) ) { | |
function techmarket_store_directory() { | |
ob_start(); | |
?> | |
<div class="techmarket-store-directory clearfix"> | |
<hr class="no-margin"> | |
<?php the_widget( 'WC_Widget_Product_Categories', array( 'hide_empty' => false ) ); ?> | |
</div> | |
<?php |
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
if ( ! function_exists( 'electro_compare_header_icon' ) ) { | |
/** | |
* @since 2.0 | |
*/ | |
function electro_compare_header_icon() { | |
if( function_exists( 'electro_get_compare_page_url' ) ) : | |
global $yith_woocompare; | |
$header_tooltip_placement = apply_filters( 'electro_header_tooltip_placement', 'bottom' ); | |
?><div class="header-icon header-icon-wishlist" <?php if ( $header_tooltip_placement ) : ?>data-toggle="tooltip" data-placement="<?php echo esc_attr( $header_tooltip_placement ); ?>" data-title="<?php echo esc_attr( esc_html__( 'Compare', 'electro' ) ); ?>"<?php endif; ?>> | |
<a href="<?php echo esc_attr( electro_get_compare_page_url() ); ?>"> |
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
add_action( 'init', 'ec_change_description_below_title', 10 ); | |
function ec_change_description_below_title() { | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 6 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
} |
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
add_action( 'init', 'ec_child_move_description_below_price', 5 ); | |
function ec_child_move_description_below_price() { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 26 ); | |
} |
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
body.home { | |
background: #fcfcfc; | |
} | |
body.post-type-archive { | |
background: #f5f5f5; | |
} | |
body.tax-product_cat { | |
background: #e5e5e5; |
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
add_action( 'init', 'ec_child_add_custom_code_after_header_logo' ); | |
function ec_child_add_custom_code_after_header_logo() { | |
add_action( 'electro_masthead', 'electro_header_custom_code', 15 ); | |
} | |
if ( ! function_exists( 'electro_header_custom_code' ) ) { | |
function electro_header_custom_code() { |
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
add_action( 'init', 'ec_child_remove_header_icons' ); | |
function ec_child_remove_header_icons() { | |
remove_action( 'electro_header_icons', 'electro_compare_header_icon', 70 ); | |
remove_action( 'electro_header_icons', 'electro_wishlist_header_icon', 80 ); | |
} |
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
add_action( 'init', 'un_child_remove_single_product_meta', 10 ); | |
function un_child_remove_single_product_meta() { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); | |
} |