Hide Admin Bar at Admin Page
#wpadminbar{ display:none; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
#wpadminbar{ display:none; }Continue reading
/** * Enables the HTTP Strict Transport Security (HSTS) header in WordPress. * Includes preloading with subdomain support. */ function tg_enable_strict_transport_security_hsts_header_wordpress() { header( ‘Strict-Transport-Security: max-age=31536000; includeSubDomains; preload’ ); } add_action( ‘send_headers’, ‘tg_enable_strict_transport_security_hsts_header_wordpress’ );Continue reading
/** * Plugin Name: Hide Author and Date * Plugin URI: * Description: A simple plugin to hide the author and publish date on the front end. * Version: 1.0.1 * Author: * License: GPL2 */ // Make sure we…Continue reading
$post_id = get_the_ID(); if (!$post_id) return; // Exit if no post ID // Basic attorney info $attorney_data = []; // Basic Information with null checks $attorney_data = [ ‘name’ => get_field(‘attorney_name’, $post_id) ?: ”, ‘honorificSuffix’ => get_field(‘honorificSuffix’, $post_id) ?: ”,…Continue reading
$post_id = get_the_ID(); if (!$post_id) return; // Exit if no post ID // Basic attorney info $attorney_data = []; // Basic Information with null checks $attorney_data = [ ‘name’ => get_field(‘attorney_name’, $post_id) ?: ”, ‘honorificSuffix’ => get_field(‘honorificSuffix’, $post_id) ?: ”,…Continue reading
/* Specific styles for the custom HTML widget container */ /* Author: Sumaiya, Clickup Doc:https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-24335 */ .custom_grid_fluentform .ff-t-cell { display: flex !important; /* Use flexbox to arrange child elements */ flex-direction: row !important; /* Set flex direction to row */…Continue reading
/** * v1.0.1 * Block Search Engine Bots from Accessing GeoIP Detection AJAX * * Add this code to your theme’s functions.php or a custom plugin */ add_action(‘init’, ‘block_bots_from_geoip_detection’); function block_bots_from_geoip_detection() { // Only check on admin-ajax.php requests if (strpos($_SERVER[‘REQUEST_URI’],…Continue reading
/** * Snippet Name: Show ‘NEW’ Badges for Recently Added Items in WooCommerce * Snippet Author: wdxtechnologies.com */ // Show the NEW badge on the archive loop item add_action( ‘woocommerce_after_shop_loop_item_title’, ‘ecommercehints_product_archive_new_badge’, 1 ); function ecommercehints_product_archive_new_badge() { global $product; $days_to_show =…Continue reading
document.addEventListener(“DOMContentLoaded”, function() { const flowchart = document.getElementById(“flowchart”); flowchart.innerHTML = ` How do you plan to use your Lang BBQ Smoker? Residential Competition Commercial What cooking capacity do you need? Small (36” Patio) Large (48” or larger) Back Do you need…Continue reading
// Modify the columns and ensure WhatsApp column appears last function add_whatsapp_column($columns) { // Remove WhatsApp column if it already exists if (isset($columns[‘whatsapp’])) { unset($columns[‘whatsapp’]); } // Add WhatsApp column after Courier Address column if (isset($columns[‘courier_address’])) { $new_columns = [];…Continue reading