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_footer', function () { | |
?> | |
<script> | |
document.body.addEventListener('click', (event) => { | |
const panel = document.getElementById("woo-filters-panel"); | |
if (panel && event.target.closest('.ct-filter-item a')) { | |
event.preventDefault(); | |
const toggleClose = panel.querySelector('.ct-toggle-close'); |
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_footer', function() { | |
if (is_product()) { | |
wc_enqueue_js('jQuery(document).ready(function($) { $(".reviews_tab a").click(); });'); | |
} | |
}, 0); |
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', function() { | |
$theme = blocksy_get_wp_parent_theme(); | |
wp_enqueue_style( | |
'ct-legacy-mini-cart-styles', | |
blocksy_cdn_url( | |
get_template_directory_uri() . '/static/bundle/cart-header-element-lazy.min.css' | |
), | |
[], |
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_filter( 'woocommerce_output_related_products_args', function ( $args ) { | |
$args['status'] = 'publish'; | |
$args['limit'] = -1; | |
$args['stock_status'] = 'instock'; | |
return $args; | |
}, 10, 1 ); |
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
@media (max-width: 689.98px) { | |
[data-pagination="simple"] > div .page-numbers | |
{ margin: 2px; } | |
[data-pagination="simple"] > div .page-numbers:nth-child(3), | |
[data-pagination="simple"] > div .page-numbers:nth-child(4), | |
[data-pagination="simple"] > div .page-numbers:nth-child(8), | |
[data-pagination="simple"] > div .page-numbers:nth-child(9) | |
{ display: none; } | |
} |
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_filter('blocksy:single:top', function () { | |
if (get_field('my-field')) { | |
echo do_shortcode('[blocksy-content-block id="XXX"]'); | |
} | |
}); |
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
[data-prefix="blog"] section .entries { | |
display: block; | |
--masonry-column: 3; | |
-webkit-column-count: var(--masonry-column); | |
-moz-column-count: var(--masonry-column); | |
column-count: var(--masonry-column); | |
} | |
[data-prefix="blog"] section .entries article { | |
display: inline-block; |