Category: Admin
Glass Shards CSS
.glass-shard { /* Glass effect */ background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(9.8px); -webkit-backdrop-filter: blur(9.8px); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); z-index:99; border-radius: 11px; z-index:98; } .glass-shard:hover { transform: translateY(-6px); /* lifts up slightly */ box-shadow: 0 2px…Continue reading
Duplicate Post/Page Link (copy)
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
ACF Display Frontend (Opt Fields with prefix/suffix)
/** * WLM712: Safe ACF Options getter with prefix/suffix (+ shortcode). * Shortcode: [wlm712_acfopt field=”…” prefix=”…” suffix=”…” esc=”html|attr|url|none”] * Example: [wlm712_acfopt field=”contact_phone_number” prefix=’‘ suffix=’‘] */ if (!defined(‘WLM712_ACFOPT_VER’)) { define(‘WLM712_ACFOPT_VER’, ‘1.0.0’); add_action(‘init’, function () { // Only run if ACF is…Continue reading
wwr parallax 2
add_action(‘wp_footer’, function () { ?>Continue reading
FollowUp Boss Website Tracking
RD Full-Width Cloner for Theme Marquee Title Element
(function () { var ROOT = ‘.full-width-marquee-title’; var TRACK = ‘.fusion-title-heading’; var SEG = ‘.awb-marquee-content’; var NBSP_COUNT = 5; // number of spaces between repeats (controls visual gap) var MIN_MULTIPLIER = 3; // minimum total marquee width relative to…Continue reading
Enable Top-Bar Rendering via GET Variable and ACF Options Page Toggle
if (!defined(‘ABSPATH’)) exit; add_action(‘init’, function () { if (is_admin()) return; $enabled = get_field(‘enable_header_top-bar’, ‘option’) ? ‘1’ : ‘0’; if ($enabled === ‘1’) { $_GET[‘rd_topbar_toggle’] = ‘1’; } else { unset($_GET[‘rd_topbar_toggle’]); } });Continue reading
Save Options Page Top-Bar Settings to Global Header Section Post
if (!defined(‘ABSPATH’)) exit; define(‘TARGET_POST_ID’, 7183); // Specify the post ID of the layout section that should receive the values add_action(‘acf/save_post’, function ($post_id) { if ($post_id !== ‘options’) { return; } $enabled = get_field(‘enable_header_top-bar’, ‘option’) ? ‘1’ : ”; // specify…Continue reading
Always enable Downloadable option
add_action( ‘wp_footer’, function() { ?>Continue reading