Category: Admin
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
Meta Pixel
Untitled Snippet
Untitled Snippet
Get X – Force Hreflang en-CA
/** * Get X Media – Canada Hreflang (Output Buffering Method) * * @package GetXMedia_Hreflang * @author Get X Media * @version 3.0.1 */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } /** * Inject hreflang tag into…Continue reading
Get X – Clean RankMath Data Extractor
/** * Clean RankMath Data Extractor – No Styling * Universal solution for extracting RankMath Local Business data * Works across any WordPress site with RankMath * Add to WP Code Snippets – PHP Snippet – Run Everywhere * *…Continue reading