Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / style.css
Created July 13, 2026 09:12
Glowess - Single product content tabbed view
.single-product .wp-block-woocommerce-product-details .wc-tabs {
display: block;
font-size: 20px;
}
.single-product .wp-block-woocommerce-product-details .woocommerce-tabs .panel[style="display: none;"] {
display: none !important;
}
@jmabbas
jmabbas / script.js
Created July 7, 2026 13:48
GoTrek - Date selection
( function( $, window ) {
'use strict';
$(document).on('ready', function () {
//initialization of unfold component
if ( $.HSCore.components.hasOwnProperty( 'HSUnfold' ) ) {
$.HSCore.components.HSUnfold.init($('[data-unfold-target]'));
}
@jmabbas
jmabbas / style.css
Created June 29, 2026 05:22
FreshCart - Header logo size
@media (min-width: 1024px) {
.header__heading.header__heading-link,
.header__heading .header__heading-link,
.header__heading-link {
width: 300px;
}
}
@jmabbas
jmabbas / functions.php
Created June 23, 2026 08:09
Silicon - Enable dark mode by default
function silicon_child_default_dark_mode() {
?>
<script>
(function() {
if (!localStorage.getItem('mode')) {
localStorage.setItem('mode', 'dark');
}
})();
</script>
<?php
@jmabbas
jmabbas / style.css
Created June 23, 2026 05:36
Electro - Footer Twitter X icon
.handheld-footer .footer-social-icons a.fab.fa-x-twitter-square:before {
content: "\e61b";
}
@jmabbas
jmabbas / style.css
Created June 23, 2026 05:24
MyBag - Twitter icon
.fa-twitter:before {
content: '';
background: url(YOUR IMAGE LINK);
width: 30px;
height: 30px;
display: block;
}
@jmabbas
jmabbas / functions.php
Created June 18, 2026 12:46
GoTrek - Calendar
function child_calendar_update() { ?>
<script>
document.addEventListener('DOMContentLoaded', function () {
const firstDateEl = document.querySelector('.js-first-date');
const lastDateEl = document.querySelector('.js-last-date');
const firstYearEl = document.querySelector('.js-first-year');
const lastYearEl = document.querySelector('.js-last-year');
@jmabbas
jmabbas / functions.php
Created June 17, 2026 09:17
Silicon - Elementor
add_action(
'elementor/frontend/section/before_render',
function( $element ) {
$settings = $element->get_settings_for_display();
if ( empty( $settings['container_class'] ) ) {
return;
}
@jmabbas
jmabbas / style.css
Created June 16, 2026 07:11
Electro - Mobile header color to white
.mobile-header-v2 {
background-color: transparent !important;
}
.mobile-handheld-department ul.nav li a,
.mobile-header-v2 .handheld-header-links .columns-3 a,
.mobile-header-v2 .off-canvas-navigation-wrapper .navbar-toggler,
.mobile-header-v2 .off-canvas-navigation-wrapper button {
color: #000 !important;
}
@jmabbas
jmabbas / style.css
Created June 15, 2026 06:49
FreshCart - Remove my account image
.woocommerce-account:not(.logged-in) .woocommerce::before {
content: none;
}
@media (min-width: 78px) {
.woocommerce-account:not(.logged-in) #customer_login {
max-width: 100%; grid-column: span 12 / span 12;
}
}