Skip to content

Instantly share code, notes, and snippets.

View ahmedeshaan's full-sized avatar

Ahmed Eshaan ahmedeshaan

View GitHub Profile
.product_type_simple.added, .product_type_variation.added, .product_type_variable.added {
display: none !important;
}
function holiday_message_before_header() {
?>
<div class="header-block">
<?php echo do_shortcode( '[block id="YOUR BLOCK NAME"]' ); ?>
</div>
<?php
}
add_action( 'flatsome_before_header', 'holiday_message_before_header', 1 );
1. Image doesn’t change on archive when Ajax is enabled
2. Size on product page, override shop page button
https://getwooplugins.com/ticket/25077/
https://wordpress.org/support/topic/scrolling-on-touch-devices-not-possible/
https://www.loom.com/share/14c5f2c88a8a4f76874d2835e6c11bc5
[vc_row][vc_column][recent_products per_page="12" columns="4" orderby="" order=""][/vc_column][/vc_row][vc_row][vc_column][electro_vc_products_carousel title="Testing Product with bug" limit="10"][/vc_column][/vc_row]
jQuery(window).on(‘wcpf_update_products’, function () {
jQuery('.variations_form').each(function(){
jQuery(this).wc_variation_form();
});
});
define( 'WP_MEMORY_LIMIT', '256M' );
remove_filter( ‘woocommerce_product_data_tabs’, ‘add_wvs_pro_preview_tab’ );
<?php
set_theme_mod( 'type_headings', array( 'font-family' => 'Lato', 'variant' => '700' ) );
set_theme_mod( 'type_texts', array( 'font-family' => 'Lato', 'variant' => '400' ) );
set_theme_mod( 'type_nav', array( 'font-family' => 'Lato', 'variant' => '700' ) );
set_theme_mod( 'type_alt', array( 'font-family' => 'Dancing Script', 'variant' => '700' ) );