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
add_filter( 'flatsome_custom_product_single_product_hooks', function( $array ) { | |
$array['more_hooks'] = 'more_hooks'; | |
return $array; | |
}); |
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
jQuery(document).ready(function( $ ){ | |
// Your code in here | |
jQuery( document ).on( ‘jet-filter-loaded’, function(){ | |
jQuery(‘.variations_form’).each(function(){ | |
jQuery(this).wc_variation_form(); | |
});}); | |
}); |
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
function wvg_stop_live_feed() { | |
return true; | |
} | |
add_filter('stop_gwp_live_feed', 'wvg_stop_live_feed'); |
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
[section label="Future Gird" padding="20px" padding__sm="0px"] | |
[ux_banner_grid height="636"] | |
[col_grid span="6" span__sm="12" height="1-2"] | |
[ux_banner height="500px" bg="4263" bg_size="original" bg_color="rgb(58, 143, 83)" link="#" video_visibility="visible"] | |
[text_box width__sm="60" position_x="50" position_y="50"] |
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( 'default_wvs_variation_attribute_options_html', function ( $default ) { | |
if ( is_ajax() && is_admin() ) { | |
return true; | |
} | |
return $default; | |
} ); |
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 do_action('wvs_pro_variation_show_archive_variation'); ?> |
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
.archive.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-pro .variable-items-wrapper { | |
display: inline-flex !important; | |
} | |
.woo-variation-swatches-pro .wvs_add_to_cart_button.button{ | |
float:none !important; | |
display:block; | |
text-align:right !important; | |
} |
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 | |
function wcs_limit_word_count_in_post_title( $title ) { | |
return wp_trim_words( $title, 2, '' ); | |
} | |
add_filter( 'the_title', 'wcs_limit_word_count_in_post_title' ); |
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 type="text/javascript"> | |
jQuery(document).ready(function( $ ){ | |
// Your code in here | |
jQuery(window).on('wcpf_update_products', function () { | |
$('.variations_form').each(function(){ | |
$(this).wc_variation_form(); | |
}); | |
}); |
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( 'disable_wvs_enqueue_scripts', function(){ | |
// Load only product page. Return true to disable. | |
return ! is_product(); | |
} ); | |
//Or |