Skip to content

Instantly share code, notes, and snippets.

View ahmedeshaan's full-sized avatar

Ahmed Eshaan ahmedeshaan

View GitHub Profile
function force_woocommerce_single_variation_images( $size ) {
return 'woocommerce_single';
}
add_filter( 'woocommerce_gallery_image_size', 'force_woocommerce_single_variation_images' );
Version 1.0.12 ( 05/07/2018 )
Product catelog mode style
Single product attribute sizeing
Hide out of stock variation product
Item styling
Version 1.0.11 ( 03/06/2018 )
https://www.majemedia.com/2015/01/woocommerce-how-to-show-empty-categories/
https://www.majemedia.com/2015/01/woocommerce-how-to-show-empty-categories/
* Bypass logout confirmation.
*/
function iconic_bypass_logout_confirmation() {
global $wp;
if ( isset( $wp->query_vars['customer-logout'] ) ) {
wp_redirect( str_replace( '&', '&', wp_logout_url( wc_get_page_permalink( 'disconnected' ) ) ) );
exit;
}
}
<?php
function custom_woocommerce_tag_cloud_widget() {
$args = array(
'number' => 15,
'taxonomy' => 'product_tag'
);
return $args;
}
add_filter( 'woocommerce_product_tag_cloud_widget_args', 'custom_woocommerce_tag_cloud_widget' );
.woo-variation-swatches-theme-ux-shop .variations .select2-container {
display:none;
}
/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
/*************** ADD CUSTOM CSS HERE. ***************/
#map_go {width:100%!important;}
<?php
add_action( 'init','custom_remove_breadcrumb' ); function
custom_remove_breadcrumb()
{ remove_action('flatsome_category_title','flatsome_shop_loop_tools_breadcrumbs',10); }