Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / style.css
Last active October 1, 2026 05:00
Electro - Remove rating count on loop products
.owl-item>.product .product-loop-body .product-rating > div,
.products>.product .product-loop-body .product-rating > div {
font-size: 12px;
margin-bottom: 10px;
}
.owl-item>.product .product-loop-body .product-rating,
.products>.product .product-loop-body .product-rating {
font-size: 0;
}
@jmabbas
jmabbas / functions.php
Last active September 23, 2026 12:04
GoTrek - Search box update as per input count
/**
* --------------------------------------------------------------------------
* GoTrek: Dynamic Hotel Filter by Location, Adults, and Children
* --------------------------------------------------------------------------
*/
// 1. Output hotel data attributes inside each product item in the loop
add_action( 'woocommerce_before_shop_loop_item', 'gotrek_output_hotel_filter_meta', 1 );
add_action( 'woocommerce_shop_loop_item_title', 'gotrek_output_hotel_filter_meta', 1 );
@jmabbas
jmabbas / functions.php
Created September 10, 2026 07:16
GoTrek - Single product Maps URL
function gotrek_single_hotel_show_map() {
if ( ! gotrek_is_acf_activated() ) {
return;
}
$hotel_group = gotrek_get_hotel_group();
if ( ! empty( $hotel_group['location_map'] ) ) :
$map_url = '';
if ( is_array( $hotel_group['location_map'] ) ) {
if ( ! empty( $hotel_group['location_map']['address'] ) ) {
@jmabbas
jmabbas / style.css
Created August 25, 2026 05:52
Cartzilla - Amazon pay
div#amazon_customer_details .col2-set > div {
max-width: 100%;
background-color: #fff;
padding: 20px;
}
@jmabbas
jmabbas / style.css
Created August 24, 2026 06:46
FreshCart - Password reset.
.woocommerce-account:not(.logged-in).woocommerce-lost-password .woocommerce {
display: flex;
flex-direction: column;
}
.woocommerce-account:not(.logged-in).woocommerce-lost-password .woocommerce::before,
.woocommerce-account:not(.logged-in).woocommerce-lost-password .wc-block-components-notice-banner.is-success {
width:100%;
}
@jmabbas
jmabbas / functions.php
Created August 20, 2026 12:44
Electro - Remove deal progress bar
add_action( 'init', 'ec_child_remove_deal_progress_bar' );
function ec_child_remove_deal_progress_bar() {
remove_action( 'electro_onsale_product_content', 'electro_deal_progress_bar', 60 );
}
@jmabbas
jmabbas / functions.php
Created August 18, 2026 13:25
Electro - Single product custom content after product tabs
add_action( 'init', 'ec_child_single_product_custom_content_after_tabs', 10 );
function ec_child_single_product_custom_content_after_tabs() {
add_action( 'woocommerce_after_single_product_summary', 'product_custom_content', 11 );
}
function product_custom_content() { ?>
<div class="custom-content">
Your content here
</div> <?php
}
@jmabbas
jmabbas / style.css
Created August 13, 2026 16:32
Globaltable - Fix
@media(min-width: 1000px) {
.footer__aside {
justify-content: center;
gap: 70px;
}
.footer__follow-and-payment {
display: flex;
gap: 80px;
}
@jmabbas
jmabbas / style.css
Created August 13, 2026 16:26
ABC Home - Fix
@media(min-width: 769px) {
iframe#chat-button {
bottom: 70px !important;
}
}
@jmabbas
jmabbas / style.css
Last active August 13, 2026 16:04
Safaviehhome - Fix
@media (max-width: 767) {
div#best-seller-sl .group-stars .ind_cnt {
display: block !important;
text-align: left;
padding: 0 !important;
}
}