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
| <script> | |
| document.addEventListener('click', function (e) { | |
| const ratingTrigger = e.target.closest( | |
| '.ct-woo-card-rating, .woocommerce-product-rating .star-rating' | |
| ); | |
| if (!ratingTrigger) return; | |
| const isSingle = document.body.classList.contains('single-product'); |
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
| /* 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; |
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
| /* 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; |
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('get_terms_args', function ($args) { | |
| $args['orderby'] = 'term_order'; | |
| $args['order'] = 'ASC'; | |
| return $args; | |
| }); |
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( | |
| 'blocksy:woocommerce:product-card:thumbnail:gallery-images', | |
| function ($gallery_images) { | |
| if (! is_product() && ! is_shop() && ! is_product_category()) { | |
| return $gallery_images; | |
| } | |
| global $product; |
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 this to Content Blocks > Hook > No Condition or Location | |
| // Call it through Customizer > Product Archives > Card Options > Enable Content Block Element > Select the Hook name in drop down | |
| if ( is_product() || is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) { | |
| global $product; | |
| if ( ! $product->is_sold_individually() && 'variable' != $product->product_type && $product->is_purchasable() && $product->is_in_stock() ) { | |
| echo '<div class="dhn-atc-wrap">'; | |
| woocommerce_quantity_input( array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() ) ); | |
| echo '<a href="' . esc_url( $product->add_to_cart_url() ) . '" data-quantity="1" class="button product_type_simple add_to_cart_button ajax_add_to_cart" data-product_id="' . esc_attr( $product->get_id() ) . '" aria-label="' . esc_attr( sprintf( __( 'Add to cart: %s', 'woocommerce' ), $product->get_name() ) ) . '" aria-describedby="" rel="nofollow">' . esc_html( $p |
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
| .blog .page-title::after, .page .page-title::after { | |
| content: attr(title); | |
| position: absolute; | |
| z-index: -1; | |
| top: -7%; | |
| bottom: 0; | |
| width: 100%; | |
| height: 100%; | |
| white-space: nowrap; | |
| display: flex; |
NewerOlder