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_sale_flash',function ($text, $post, $product) { | |
if (strpos($text, '<span class="onsale">') === false) { | |
return $text; | |
} | |
if (blocksy_get_theme_mod('sale_badge_value', 'default') === 'custom') { | |
$text = blocksy_get_theme_mod('sale_badge_custom_value', '-{price}'); | |
if ($product->is_type('variable')) { |
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
.ct-read-progress-bar { | |
top: calc(var(--admin-bar, 0px) + var(--theme-frame-size, 0px) + var(--header-sticky-height) + var(--header-sticky-offset)); | |
} |
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:custom_post_types:supported_list', function($post_types) { | |
// Remove 'projects' custom post type from the list of supported post types for customizer | |
$post_types = array_diff($post_types, ['projects']); | |
return $post_types; | |
}); |
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_product_is_on_sale', function ($on_sale, $product) { | |
if ($product->is_type('variable') && (is_shop() || is_product() || is_product_category() || is_product_tag())) { | |
foreach ($product->get_children() as $variation_id) { | |
$variation = wc_get_product($variation_id); | |
if ($variation->is_on_sale()) { | |
return true; | |
} | |
} | |
} |
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
.woocommerce-product-gallery__trigger { width: 80%; height: 80%; top: 0; left: 10%;} | |
.woocommerce-product-gallery__trigger, | |
.woocommerce-product-gallery__trigger:hover, | |
.woocommerce-product-gallery__trigger::before { background-color: transparent; } |
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) { | |
.woo-listing-top .woocommerce-ordering select { | |
color: inherit; | |
width: inherit; | |
padding: 0 15px; | |
background-image: url("data:image/svg+xml,%3Csvg width='21' height='13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5.379L20.621 2.5 10.5 12.621.379 2.5 2.5.379l8 8z' fill='%234F5D6D' fill-rule='nonzero'/%3E%3C/svg%3E"); | |
} | |
.ct-sort-icon { | |
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
.woocommerce-product-gallery__trigger::before { | |
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 30 30'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E%0A"); | |
} |
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 only screen and (max-width: 700px) { | |
.ct-dynamic-filter { | |
overflow-x: scroll; | |
flex-wrap: nowrap; | |
justify-content: left; | |
padding-bottom: 1rem; | |
} | |
.ct-dynamic-filter > * { | |
flex: 0 0 auto; |
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
.ct-card-variation-swatches .variations { align-items: center; } | |
.ct-card-variation-swatches .ct-variation-swatches { | |
overflow-x: auto; | |
scrollbar-width: thin; | |
padding-bottom: 10px; | |
justify-content: flex-start; | |
flex-wrap: nowrap; | |
max-width: 80%; | |
} |
NewerOlder