Category: Widgets
mailpoet close css
/* 弹窗的基本样式 */ .mp_form_popup1 { transition: all 0.3s ease; /* 为弹窗的过渡动画添加平滑效果 */ position: fixed; bottom: 20px; /* 放置在屏幕底部 */ right: 20px; /* 放置在屏幕右侧 */ z-index: 9999; width: 300px; height: 400px; background-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);…Continue reading
End of Month
December 31stContinue reading
Untitled Snippet
Body on Scroll
;(function ($) { $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 5) { $(“body”).addClass(“scroll-500”); $(“.tm-header”).removeClass(“uk-blend-difference”); } else { $(“body”).removeClass(“scroll-500”); $(“.tm-header”).addClass(“uk-blend-difference”); } }); })(jQuery);Continue reading
Hide Out Of Stock items on WooCommerce Shop page when sorting (popularity/price) applied.
Add the Buy on Kindle button near Add to Cart in WooCommerce PDP.
/** * Snippet Name: Add the Buy on Kindle button near Add to Cart in WooCommerce PDP. */ add_action(‘woocommerce_after_add_to_cart_button’,’add_kindle_button’); function add_kindle_button() { $kindle_button_url = get_post_meta( get_the_ID(),’kindle_button_url’,true); if ( isset($kindle_button_url) && filter_var($kindle_button_url, FILTER_VALIDATE_URL)) { $style = ‘style=”background-color: #ff9900; color: #fff;’; $button…Continue reading
How to Add Christmas Celebration Animation in WordPress Website
function add_custom_div(){ // add your custom code here to do something echo ‘ ‘; echo ‘ ‘; } add_action( ‘wp_footer’, ‘add_custom_div’ ); function snow_js() { ?>Continue reading