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
.single-product .ct-swatch-container { flex-direction: column-reverse; gap: 5px; align-items: center} | |
.single-product .ct-swatch-container .ct-tooltip, | |
.single-product .ct-swatch-container:hover .ct-tooltip { transform: none; transition: none; position: relative; opacity: 1; visibility: visible; background: transparent; } | |
.single-product .ct-swatch-container .ct-tooltip:before, | |
.single-product .ct-swatch-container .ct-tooltip:after { display: none; } |
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_the_terms', function($terms, $post_id) { | |
if (is_single() && get_post_type($post_id) === 'post') { | |
return array_filter($terms, fn($term) => $term->parent === 0); | |
} | |
return $terms; | |
}, 10, 3); |
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
<button class="ct-color-switch ct-toggle " data-color-switch="reversed" data-label="bottom" aria-label="Color mode switch" data-id="color-mode-switcher"> | |
<span class="ct-label ct-hidden-sm ct-hidden-md" aria-hidden="true"> | |
<span class="ct-dark-mode-label">Dark Mode</span> | |
<span class="ct-light-mode-label">Light Mode</span> | |
</span> | |
</button> |
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 | |
// | |
// Godaddy | |
// | |
add_action('enqueue_block_editor_assets', function () { | |
global $wp_customize; | |
if (! $wp_customize) { | |
return; | |
} |
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
@media (max-width: 690px) { | |
.ct-default-gallery .woocommerce-product-gallery, .ct-stacked-gallery .woocommerce-product-gallery { | |
--custom-edge-spacing: calc(-1 * calc(calc(100vw - var(--theme-container-edge-spacing))/2)); | |
margin-left: var(--custom-edge-spacing); | |
margin-right: var(--custom-edge-spacing); | |
} | |
} |
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_action('init', function() { | |
$all_content_blocks = get_posts([ | |
'post_type' => 'ct_content_block', | |
'posts_per_page' => -1, | |
'post_status' => 'publish', | |
'fields' => 'ids' | |
]); | |
foreach ($all_content_blocks as $block_id) { |
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('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 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
.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 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: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 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('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; | |
} | |
} | |
} |
NewerOlder