This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bricksNavMenu(), | |
bricksMultilevelMenu(), | |
bricksNavMenuMobile(), | |
bricksStickyHeader(), | |
bricksOnePageNavigation(), | |
bricksSkipLinks(), | |
bricksFacebookSDK(), | |
bricksSearchToggle(), | |
bricksPopups(), | |
bricksSwiper(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add a custom column to display favorite count of each post | |
add_filter('manage_post_posts_columns', 'add_favorited_users_column'); | |
function add_favorited_users_column($columns) { | |
$columns['favorited_users'] = 'Favorited Count'; | |
return $columns; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('wp_speculative_loading_enabled', '__return_false'); | |
remove_action('wp_head', 'wp_output_speculationrules_script'); | |
add_action('template_redirect', function () { | |
ob_start(function ($html) { | |
return preg_replace('/<script type="speculationrules".*?<\/script>/is', '', $html); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'bricksextras/breadcrumbs/', function( $crumbs ) { | |
/* only change if on singular service post */ | |
if ( is_singular('service') ) { | |
$url = '/services'; | |
$label = 'Services'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_enqueue_scripts', function() { | |
// Only allow on /support page for logged-in users | |
if (!is_user_logged_in() || !is_page('support')) { | |
wp_dequeue_script('fluent-support/customer-portal'); | |
} | |
}, 999); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix for PIP button issue with multiple players | |
function fixPIPMediaSessionIssue() { | |
// Keep track of which player is currently in PIP mode | |
let pipPlayer = null; | |
// Store original mediaSession handlers | |
const originalHandlers = {}; | |
// Function to capture and store the original mediaSession handlers | |
function captureOriginalHandlers() { |
NewerOlder