Skip to content

Instantly share code, notes, and snippets.

@akther80
akther80 / style.css
Created January 8, 2024 11:07
Tokoo - Make flash sale block products in full width
.section-flash-sale-block .products-carousel-wrap {
max-width: 100%;
flex: 0 0 100%;
}
@akther80
akther80 / functions.php
Created December 12, 2023 07:58
Tokoo - Remove manual copyright year
add_action('init', 'tokoo_child_remove_manual_copyright');
function tokoo_child_remove_manual_copyright() {
remove_filter( 'copyright_info', 'redux_apply_footer_copyright_text', 10 );
}
@akther80
akther80 / style.css
Created December 11, 2023 12:49
Electro -Brands list
.brand-thumbnails.columns-5 {
display: flex;
flex-wrap: wrap;
}
.brand-thumbnails .thumbnail {
flex: 0 0 auto;
width: 100%;
padding: 25px !important;
}
@akther80
akther80 / functions.php
Created December 8, 2023 11:36
Cartzilla- Dokan live chat duplicate checkbox issue
function cartzilla_live_chat_setting() {
if( class_exists( 'Dokan_Pro' ) ) {
if( class_exists( 'WeDevs\DokanPro\Modules\LiveChat\VendorSettings' ) ) {
cartzilla_remove_class_action( 'dokan_settings_form_bottom', 'WeDevs\DokanPro\Modules\LiveChat\VendorSettings', 'dokan_live_chat_seller_settings', 15 );
}
}
}
add_action('init', 'cartzilla_live_chat_setting');
@akther80
akther80 / style.css
Last active December 12, 2023 12:36
Tokoo - Parent menu and submenu should display in same level
.primary-nav .primary-nav-menu .primary-vertical-nav > ul.sub-menu > li,
.departments-menu li.menu-item-has-children {
position: relative !important;
}
@akther80
akther80 / style.css
Created November 27, 2023 04:29
Tokoo - Top part of the submenu on the right is aligned with the menu voice
.vertical-nav.yamm .menu-item-has-children {
position: relative !important;
}
@akther80
akther80 / style.css
Last active November 24, 2023 09:21
Tokoo - Category submenu issue in Sticky Header
.sticky-wrapper .tokoo-sticky-wrap.stuck {
z-index: 10000;
}
@akther80
akther80 / style.css
Created November 20, 2023 11:17
Vodi - Move review content on top of 'Add a review'
.tv-show-tabs .masvideos-Reviews {
display: flex;
flex-direction: column;
}
.masvideos-Reviews #review_form_wrapper {
order:2;
}
.masvideos-Reviews #comments {
@akther80
akther80 / functions.php
Last active November 16, 2023 07:04
Vodi - Rearrange Tv Show Tab and Related item position
add_action( 'init', 'rearrange_tv_shows_content');
function rearrange_tv_shows_content() {
remove_action( 'masvideos_after_single_tv_show_summary', 'vodi_template_single_related_tv_shows_carousel', 20 );
remove_action( 'masvideos_after_single_tv_show_summary', 'masvideos_template_single_tv_show_tabs', 30 );
add_action( 'masvideos_after_single_tv_show_summary', 'vodi_template_single_related_tv_shows_carousel', 21 );
add_action( 'masvideos_after_single_tv_show_summary', 'masvideos_template_single_tv_show_tabs', 20 );
}
@akther80
akther80 / functions.php
Created October 27, 2023 13:19
MyTravel - Rename filter dropdown option name
$instance = MAS_Travels::instance();
remove_filter( 'woocommerce_dropdown_variation_attribute_options_html', array( $instance, 'mas_travels_filter_dropdown_option_html' ), 12, 2 );
add_filter( 'woocommerce_dropdown_variation_attribute_options_html','mas_travels_filter_dropdown_option_html',12, 2 );
function mas_travels_filter_dropdown_option_html( $html, $args ) {
global $product;
$product_format = get_product_format() ? get_product_format() : 'standard';
$product_type = $product->get_type();