This file contains 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( 'jetpack_instant_search_options', function($options) { | |
$lang = pll_current_language(); | |
$options['adminQueryFilter'] = array( | |
'bool' => array( | |
'must' => array( | |
array( 'term' => array( 'taxonomy.language.slug' => $lang ) ), | |
) | |
) | |
); |
This file contains 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
.wc-bookings-date-picker-date-fields .required_for_calculation.booking_date_year { | |
width: auto; | |
min-width: 100%; | |
} |
This file contains 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
const countPattern = (threadcount, palette, multiplier = 4) => { | |
// transforms pallette K#303030 W#FFFFFF string into an objet {K: '#303030', W: '#FFFFFF'} | |
palette = palette.split(" ").reduce((acc, curr) => { | |
const el = curr.split("#") | |
acc[el[0].trim()] = `#${[el[1]]}` | |
return acc | |
}, {}) |
This file contains 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_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); | |
function my_theme_enqueue_styles() { | |
$parent_style = 'parent-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array( $parent_style ), |
This file contains 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 this snippet in your child theme functions.php file */ | |
add_action( 'woocommerce_before_cart' , 'my_custom_cart_notice' ); | |
function my_custom_cart_notice() { | |
wc_clear_notices(); | |
wc_print_notice( 'My custom notice text comes here', 'notice' ); | |
wc_clear_notices(); | |
} |
This file contains 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
const pMap = require('p-map') | |
const axios = require('axios') | |
const https = require('https') | |
const camelCase = require('camelcase') | |
const { mapKeys, isPlainObject, trimEnd } = require('lodash') | |
const TYPE_AUTHOR = 'author' | |
const TYPE_ATTACHEMENT = 'attachment' | |
class WordPressSource { |
This file contains 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
.wp-block-gallery img { | |
transition: 1s; | |
} | |
.wp-block-gallery:hover img { | |
transform: scale(.95); | |
filter: grayscale(100%); | |
} | |
.wp-block-gallery img:hover { |
This file contains 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
.wp-block-gallery img { | |
transition: 1s; | |
} | |
.wp-block-gallery:hover img { | |
transform: scale(.95); | |
filter: grayscale(100%); | |
} | |
.wp-block-gallery img:hover { |
This file contains 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( 'ginger_login_link_visible', '__return_false' ); | |
add_filter( 'phtpb_config_data', 'ginger_demo_phtpb_config_data' ); | |
function ginger_demo_phtpb_config_data( $data ) { | |
$rev_sliders = array(); | |
if ( class_exists( 'RevSlider' ) ) { |
NewerOlder