Skip to content

Instantly share code, notes, and snippets.

@jmabbas
jmabbas / functions.php
Last active February 16, 2026 12:19
Furnique - Load tab view on single product tabs
add_action('wp_footer', function () {
if ( ! is_product() ) return;
?>
<script>
jQuery(document).ready(function($){
const $tabsWrapper = $('.woocommerce-tabs');
const $tabsList = $tabsWrapper.find('ul.tabs');
$('.woocommerce-Tabs-panel > li[role="presentation"]').each(function(){
@jmabbas
jmabbas / style.css
Created February 16, 2026 10:19
Furnique - Single product description style
.woocommerce-Tabs-panel--description .alignleft {
float: left;
margin: 0.5em 1em 0.5em 0;
}
@jmabbas
jmabbas / style.css
Created February 16, 2026 09:04
Electro - Single product tabs customize
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
if ( isset( $tabs['reviews'] ) ) {
$tabs['reviews']['priority'] = 25;
}
if ( isset( $tabs['accessories'] ) ) {
$tabs['accessories']['priority'] = 30;
}
@jmabbas
jmabbas / style.css
Created February 16, 2026 08:12
Hellix - Off-canvas styles
.sidebar.js-sidebar .widget_nav_menu li a {
color: inherit;
font-size: inherit;
}
.sidebar {
background-color: #18130c;
background-image: url(assets/img/general/pattern_bg.png);
}
@jmabbas
jmabbas / style.css
Last active February 12, 2026 14:37
Furnique - Make single product gallery image small
@media (min-width: 1200px) {
div[data-block-name="woocommerce/product-image-gallery"] .flex-control-thumbs {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
}
.woocommerce-product-gallery img.flex-active {
border: 1px solid #000;
box-sizing: border-box;
}
@jmabbas
jmabbas / functions.php
Last active February 10, 2026 06:19
Vodi - TV show short description on loop
//TV show excerpt on TV show loop
function masvideos_template_loop_tv_show_body_close() {
global $post;
$short_description = apply_filters( 'masvideos_template_loop_tv_show_short_desc', $post->post_excerpt );
?><div class="loop-short-desc-custom" style=" height: 95px; overflow: hidden; margin-bottom: 20px; ">
<?php echo $short_description; ?>
</div>
<?php
/**
* Class MasVideos_TMDB_Importer_Controller file.
*
* @package MasVideos\Admin\Importers
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@jmabbas
jmabbas / style.css
Created February 6, 2026 08:49
Electro - Disable sticky header on mobile view
@media (max-width: 767px) {
.sticky-wrapper .stick-this.stuck {
position: initial;
}
}
@jmabbas
jmabbas / style.css
Last active February 5, 2026 08:42
Furnique - Custom styles
//Menu color
.wp-block-navigation__submenu-container.has-mega-menu .nav-title > .wp-block-navigation-item__content .wp-block-navigation-item__label {
color: #000 !important;
}
.wp-block-navigation-submenu:not(.nav-title) .wp-block-navigation-item .wp-block-navigation-item__label {
color: #797979;
}
@jmabbas
jmabbas / functions.php
Last active February 2, 2026 08:59
Electro - Mobile view custom changes
add_action( 'woocommerce_before_single_product_summary', 'woocommerce_template_single_title', 7 );