This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doubleClickMenu( $jqEvent ) { | |
var $parentNode = $( this ), | |
$menuToggle = $parentNode.closest( '.menu' ).prev( '.menu-toggle' ), | |
menuIndex = $parentNode.index(); | |
if ( 'inline-block' !== $menuToggle.css( 'display' ) ) { | |
if ( menuIndex !== parseInt( $parentNode.data( 'index' ), 10 ) ) { | |
$jqEvent.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'mc-listings/templates/filters/item-classes', '__prefix_add_classes' ); | |
function __prefix_add_classes( $classes = array() ) { | |
$classes['new-class'] = 'true'; | |
return $classes; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_get_plugins_for_woocommerce', '_tm_clear_woo_plugins', 10, 2 ); | |
function _tm_clear_woo_plugins( $woo_plugins, $all_plugins ) { | |
$allowed_plugins = array( | |
'tm-woocommerce-package/tm-woocommerce-package.php' => true, | |
'tm-woocommerce-quick-view/tm-woocommerce-quick-view.php' => true, | |
'tm-woocommerce-ajax-filters/tm-woocommerce-ajax-filters.php' => true, | |
'tm-woocommerce-compare-wishlist/tm-woocommerce-compare-wishlist.php' => true, | |
'woocommerce-currency-switcher/index.php' => true, | |
'woocommerce-social-media-share-buttons/index.php' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( function ( $ ) { | |
function initCarouselThumbnail() { | |
$( '.woocommerce-product-gallery__trigger' ).prependTo(".woocommerce-product-gallery > .flex-viewport"); | |
$( 'ol.flex-control-nav' ).wrap("<div class='thumbnails-slider'></div>").addClass('slides'); | |
var sliderWrap = $('.thumbnails-slider'), | |
productGallery = $('.woocommerce-product-gallery'), | |
sliderItems = $('.slider-thumbnails > li'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.woocommerce #content div.product div.images, | |
.woocommerce div.product div.images, | |
.woocommerce-page #content div.product div.images, | |
.woocommerce-page div.product div.images { | |
width: 100%; | |
float: none | |
} | |
.woocommerce div.product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) { | |
clear: none | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'site_transient_update_themes', 'probit_disable_update_notice' ); | |
function probit_disable_update_notice( $updates_transient ) { | |
$updates = $updates_transient->response; | |
$current_theme = get_option( 'template' ); | |
if ( isset( $updates[ $current_theme ] ) ) { | |
unset( $updates[ $current_theme ] ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="manifest" href="site.webmanifest"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( $ ) { | |
"use strict"; | |
var myElementorFront = { | |
init: function() { | |
elementorFrontend.hooks.addAction( 'frontend/element_ready/wp-widget-my_widget.default', myElementorFront.initWidget ); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adding custom icon to icon control in Elementor | |
*/ | |
function jet_modify_controls( $controls_registry ) { | |
// Get existing icons | |
$icons = $controls_registry->get_control( 'icon' )->get_settings( 'options' ); | |
// Append new icons |