Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / reviews.php
Created December 30, 2025 12:21
GoTrek - Reviews
<?php
/**
* Reviews for Single Hotel
*
* @package gotrek
*/
defined( 'ABSPATH' ) || exit;
global $product;
@jmabbas
jmabbas / style.css
Created December 30, 2025 07:08
Electro - Custom codes
.off-canvas-navigation .dropdown strong {
padding: 10px 20px;
display: block;
border-bottom: 1px solid #eae9e9;
}
.off-canvas-navigation .dropdown .dropdown-toggle[data-bs-toggle=dropdown]:not([data-hover=dropdown])+.dropdown-menu li a {
padding: 0 30px;
}
@jmabbas
jmabbas / functions.php
Created December 26, 2025 05:36
Mytravel - Remove map
function mytravel_single_hotel_location_map() {}
@jmabbas
jmabbas / functions.php
Created December 23, 2025 15:08
GoTrek - Rating categories
add_filter( 'gotrek_hotel_rating_categories', 'custom_gotrek_hotel_rating_categories' );
function custom_gotrek_hotel_rating_categories( $rating_categories ) {
// Rename existing labels
$rating_categories['location'] = esc_html__( 'Area & Location', 'gotrek' );
$rating_categories['staff'] = esc_html__( 'Service Quality', 'gotrek' );
$rating_categories['cleanliness'] = esc_html__( 'Cleanliness', 'gotrek' );
$rating_categories['value for money'] = esc_html__( 'Value for money', 'gotrek' );
$rating_categories['comfort'] = esc_html__( 'Comfort', 'gotrek' );
$rating_categories['facilities'] = esc_html__( 'Facilities', 'gotrek' );
@jmabbas
jmabbas / style.css
Last active December 15, 2025 05:39
Glowess - Header transparent
.home .desktop-header .wp-block-group.relative.has-base-background-color.has-background {
background-color: transparent !important;
justify-content: space-between;
}
.home .wp-block-group.alignfull.desktop-header {
position: absolute;
top: 0;
@jmabbas
jmabbas / style.css
Created December 11, 2025 06:22
Electro - Elementor checkout styles
body form.woocommerce-checkout .col2-set, body form.woocommerce-checkout .col2-set > div {
flex: 0 0 auto;
width: 100% !important;
}
body form.woocommerce-checkout .order-review-wrapper
{
width: 100% !important;
margin-left: 0;
margin-bottom: 30px;
@jmabbas
jmabbas / style.css
Created December 10, 2025 09:41
Gotrek - Mobile sub menu open
.mobile-header .wp-block-navigation .wp-block-navigation__submenu-icon {
z-index: 9;
}
.wp-block-navigation-submenu__toggle[aria-expanded=true]>svg {
transform: rotate(180deg) !important;
}
@jmabbas
jmabbas / functions.php
Created December 9, 2025 14:41
Electro - Home v7 slider category
$cat_args = apply_filters( 'electro_home_v7_slider_with_category_cat_args', array(
'animation' => $animation,
'is_enabled' => $cat_options['is_enabled'] ?? 'yes',
'columns' => $cat_options['columns'] ?? '5',
'category_args' => array(
'number' => $cat_options['number'] ?? '5',
'slug' => ! empty( $cat_options['slug'] )
? array_map( 'trim', explode( ',', $cat_options['slug'] ) )
: '',
'hide_empty' => isset( $cat_options['hide_empty'] )
@jmabbas
jmabbas / style.css
Created December 9, 2025 06:55
Silicon - Custom form style
.hsfc-Renderer .hsfc-TextInput {
display: block;
width: 100%;
padding: 0.625rem 1rem;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.6;
color: #585c7b;
background-color: #fff;
background-clip: padding-box;
@jmabbas
jmabbas / style.css
Created December 8, 2025 15:41
Groceria - Top bar mobile view
.wp-block-group.wp-container-core-group-is-layout-a77db08e .hidden-mobile-flex {
display: block !important;
}
.wp-block-group.wp-container-core-group-is-layout-a77db08e .hidden-mobile-flex p:first-child,
.wp-block-group.wp-container-core-group-is-layout-a77db08e .hidden-mobile-flex ul {
display: none;
}