How to Add Diwali Celebration Animation in WordPress Website
function add_custom_div(){ echo ‘ ‘; echo ‘ ‘; echo ‘ ‘; } add_action( ‘wp_footer’, ‘add_custom_div’ ); function diwali_js() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function add_custom_div(){ echo ‘ ‘; echo ‘ ‘; echo ‘ ‘; } add_action( ‘wp_footer’, ‘add_custom_div’ ); function diwali_js() { ?>Continue reading
/** * Snippet Name: Apply discount on the cheapest item */ add_action( ‘woocommerce_before_calculate_totals’, ‘apply_discount_on_cheapest_item’, 999 ); function apply_discount_on_cheapest_item( $cart ) { if ( is_admin() && ! defined( ‘DOING_AJAX’ ) ) return; if ( did_action( ‘woocommerce_before_calculate_totals’ ) >= 2 ) return;…Continue reading
/** * Snippet: Disable a Payment Gateway for a country */ add_filter( ‘woocommerce_available_payment_gateways’, ‘disable_payment_gateway_based_on_country’, 9999 ); function disable_payment_gateway_based_on_country( $available_gateways ) { if ( is_admin() ) return $available_gateways; if ( isset( $available_gateways[‘stripe’] ) && WC()->customer && WC()->customer->get_billing_country() == ‘IN’ ) {…Continue reading
button { padding: 10px 20px; font-size: 16px; transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; border-radius: 5px; } button:hover { background-color: #ff6347; transform: scale(1.1) rotate(3deg); box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3); }Continue reading
//Disable Widgets blocks add_filter( ‘use_widgets_block_editor’, ‘__return_false’ );Continue reading
// Remove tags add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);Continue reading
add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);Continue reading
<meta property="og:title" content="”/> <meta property="og:description" content="”/> <meta property="og:url" content="”/> <meta property="og:image" content="”/>Continue reading