Category: Admin
CSS for Header
/* Custom CSS */ body { background-color: #f4f4f4; font-family: Arial, sans-serif; }Continue reading
هوش مصنوعی
Play/Pause button CSS
/* play/pause for homepage background video */ .video-controls { position: absolute; bottom: 20px; right: 20px; z-index: 1000; } #playPauseBtn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } #playPauseBtn:focus { outline: 2px solid #ffcc00; }Continue reading
Play/Pause button HTML
PlayContinue reading
Hide Admin Bar at Admin Page
#wpadminbar{ display:none; }Continue reading
Enable HTTP Strict Transport Security (HSTS) in WordPress (copy)
/** * 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
Hide Author, Archives, Publish Date (cloud)
/** * 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
SEO Ready™ – ACF: Attorney Snippet (NLF)
$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
SEO Ready™ – ACF: Attorney Snippet
$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