Skip to content

Instantly share code, notes, and snippets.

@tdmrhn
tdmrhn / blc-mini-cart-suggested-products-stacked.css
Created March 14, 2026 10:12
Blocksy Mini Cart Suggested Products Stacked
/* Disable Autoplay Option in Customizing > General > Suggested Products > Mini Cart */
@media only screen and (max-width: 690px) {
.ct-suggested-products--mini-cart .ct-slider-arrows {
display: none;
}
.ct-suggested-products--mini-cart .flexy-items {
display: grid;
grid-template-columns: 1fr;
gap: 1em;
}
@tdmrhn
tdmrhn / blc-product-card-mobile-2-column.css
Created March 8, 2026 08:15
Blocksy Product Cards Mobile 2 Column
@media (max-width: 689.98px) {
[data-products] .product {
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 1em;
}
[data-products] .product figure {
grid-row: span 6; /* change this according to elements at right column */
}
}
@tdmrhn
tdmrhn / blx-related-products-background.css
Created March 6, 2026 11:13
Blocksy 2: Single Product Page Related Products Module with Background
@tdmrhn
tdmrhn / blc-2_add-review-link-to-star-rating.html
Created March 2, 2026 18:56
Blocksy 2: Add Auto Open Review Tab/Accordion Link to Star Rating
@tdmrhn
tdmrhn / woocommerce-reviews-author-display-name-formatting.php
Created February 4, 2026 07:00
Woocommerce Reviews Author Name Display Formating
<?php
add_filter( 'get_comment_author', function ( $author, $comment_id, $comment ) {
if ( ! $comment || get_post_type( $comment->comment_post_ID ) !== 'product' ) {
return $author;
}
if ( $comment->user_id ) {
$user = get_userdata( $comment->user_id );
$first = $user->first_name;
@tdmrhn
tdmrhn / blc-2-flexy-slider-animation.css
Created January 28, 2026 09:20
Blocksy 2 Product Flexy Slider Image Moving Animation
/* flexy slider from right to left animation */
/* hide flexy pills/thumbnails - optional
.ct-product-gallery-container .flexy-pills {
display: none;
}
*/
.ct-product-gallery-container .flexy-view .flexy-item-is-visible .ct-media-container img {
--flexy-slide-pan-distance: 80px;
@tdmrhn
tdmrhn / blocksy-2-product-card-icon-replace.css
Created January 13, 2026 17:18
Blocksy 2 Product Card Action Icons Replace
/* Product Card Wishlist Icon Change */
.ct-wishlist-button-archive .ct-icon-container svg {
display: none;
}
.ct-wishlist-button-archive .ct-icon-container:before {
content: '';
width: 15px;
height: 15px;
@tdmrhn
tdmrhn / wp-change-term-order.php
Created January 12, 2026 11:17
Blocksy Posts Filter Change WP term_order
<?php
add_filter('get_terms_args', function ($args) {
$args['orderby'] = 'term_order';
$args['order'] = 'ASC';
return $args;
});
@tdmrhn
tdmrhn / blc-2-change-product-hover-image.php
Created December 27, 2025 21:43
Blocksy Change Product Card Swap Image With Custom Field
<?php
add_filter(
'blocksy:woocommerce:product-card:thumbnail:gallery-images',
function ($gallery_images) {
if (! is_product() && ! is_shop() && ! is_product_category()) {
return $gallery_images;
}
global $product;
@tdmrhn
tdmrhn / woo-single-related-upsells-heading.php
Created October 8, 2025 06:33
Woo Single Product Page Replace Related/Upsells Heading