Single Line Form adjustments

/* Input fields styling */ #wpforms-758 .wpforms-field input[type=”text”], #wpforms-758 .wpforms-field input[type=”email”] { background-color: #1c355e !important; border: 1px solid #ffffff !important; border-radius: 3px !important; color: #ffffff !important; } /* Placeholder text color */ #wpforms-758 .wpforms-field input[type=”text”]::placeholder, #wpforms-758 .wpforms-field input[type=”email”]::placeholder { color:…Continue reading

Yootheme Consent – Scroll block

/* When the consent banner is present, lock the viewport */ html:has(.tm-consent), body:has(.tm-consent) { overflow: hidden !important; height: 100% !important; position: fixed; /* Extra insurance to lock mobile scrolling */ width: 100%; } /* Your red overlay */ body:has(.tm-consent)::before {…Continue reading

WordPress Post Views Counter Function (copy)

function wpb_set_post_views($postID) { $count_key = ‘wpb_post_views_count’; $count = get_post_meta($postID, $count_key, true); if($count==”){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, ‘0’); }else{ $count++; update_post_meta($postID, $count_key, $count); } } //Get rid of prefetching to keep the count accurate remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10,…Continue reading

Disable All UpdraftPlus Email Notifications (copy)

/** * Comprehensive UpdraftPlus Email Notification Disabler * Add this code to your theme’s functions.php or WPCode * By: Empathy First Media */ // Master switches and initialization prevention add_filter(‘updraftplus_disable_all_mail_init’, ‘__return_true’); // Master switch to disable email initialization add_filter(‘updraftplus_email’, ‘__return_false’);…Continue reading

Disable WordPress auto-update emails (plugins/themes/core)

// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading