Skip to content

Instantly share code, notes, and snippets.

@LesykJulia
LesykJulia / image-comparison-accordion-widgets-images-loading-fix.php
Created October 18, 2022 13:23
Fix images loading when logged out in the Image Comparison and Accordion widgets
add_action( 'init', function(){
global $wp_scripts;
$script = $wp_scripts->query( 'imagesloaded', 'registered' );
if ( ! $script ) {
return;
}
if ( ! in_array( 'jquery', $script->deps ) ){
@LesykJulia
LesykJulia / cursor-as-standard-link-on-hover.css
Created October 18, 2022 13:09
Changing mouse cursor as a standard link on a listing item hover
<?php
add_filter( 'jet-woo-builder/template-functions/product-add-to-cart-settings', 'wvs_pro_archive_variation_button_args', 999, 2 );
function wvs_pro_archive_variation_button_args( $args ) {
global $product;
$product = wc_get_product();
$ajax_add_to_cart_enabled = 'yes' === get_option( 'woocommerce_enable_ajax_add_to_cart' );
@LesykJulia
LesykJulia / collapse-and-expand-jet-smart-filters.php
Created October 17, 2022 13:41
Make JetSmartFilters Expandable & Vice Versa
<style>
.jet-filter-label:after {
content: "˅";
float: right;
margin-right: 10px;
}
.jet-filter-label.noicon:after{
content: "";
}
.jet-filter-label {
@LesykJulia
LesykJulia / remove-filters-button-appearence.css
Created October 17, 2022 12:49
Allows adjusting the Remove Filters Button from the JetSmartFilters plugin loading speed to display simultaneously with the filtered-out content.
.jet-remove-all-filters {
visibility: visible;
opacity: 1;
transition: opacity 1.3s ease-out, visibility 1.3s ease-out;
}
.jet-remove-all-filters.hide {
display: flex;
visibility: hidden;
opacity: 0;
}