Mobile Archive Filter Button CSS

/* === Mobile Filters Panel === */ @media (max-width: 768px) { #mobile-filters { position: fixed; top: 0; left: -100%; width: 80%; height: 100%; background: #fff; z-index: 9999; overflow-y: auto; transition: left 0.3s ease-in-out; box-shadow: 2px 0 10px rgba(0, 0, 0,…Continue reading

Mobile Filter for Archive Pages with Button

document.addEventListener(“DOMContentLoaded”, function () { const toggleBtn = document.querySelector(“.mobile-filter-toggle a, .mobile-filter-toggle button”); const filterPanel = document.getElementById(“mobile-filters”); if (toggleBtn && filterPanel) { const iconOn = toggleBtn.querySelector(“.toggle-icon-on”); const iconOff = toggleBtn.querySelector(“.toggle-icon-off”); // Toggle panel open/close toggleBtn.addEventListener(“click”, function (e) { e.preventDefault(); e.stopPropagation(); filterPanel.classList.toggle(“open”); const…Continue reading

Sticky Posts on Category Pages (copy)

add_action(‘pre_get_posts’, function($query) { if (!is_admin() && $query->is_main_query() && is_category()) { $sticky_posts = get_option(‘sticky_posts’); if (!empty($sticky_posts)) { add_filter(‘posts_orderby’, function($orderby, $query) use ($sticky_posts) { if (!is_admin() && $query->is_main_query() && is_category()) { global $wpdb; $sticky_list = implode(‘,’, array_map(‘intval’, $sticky_posts)); return “FIELD({$wpdb->posts}.ID, {$sticky_list}) DESC,…Continue reading

Social Share Buttons (copy)

$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ .social-share-buttons { display: flex; gap: 10px;…Continue reading

Social Share Buttons (copy)

$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ .social-share-buttons { display: flex; gap: 10px;…Continue reading

Add Donate Button (copy)

/** * USAGE: * * To display a particular campaign’s button, just add this to your template: ed_charitable_get_campaign_donate_button( 123 ); * Replace 123 with the ID of your campaign. */ /** * Display a donate button for a specific campaign.…Continue reading

NexSouk Performance & Accessibility Optimizer

// =============================== // ✅ NexSouk.com Performance & Accessibility Optimizer // =============================== add_action(‘init’, function() { // ✅ Remove emoji scripts remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7); remove_action(‘wp_print_styles’, ‘print_emoji_styles’); // ✅ Reduce Heartbeat API frequency (to lower backend resource usage) add_filter(‘heartbeat_settings’, function($settings) { $settings[‘interval’] =…Continue reading