Category: Admin
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