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
| document.addEventListener('DOMContentLoaded', function() { | |
| if (window.jQuery && window.jQuery.fancybox) { | |
| jQuery(document).on('onInit.fb', function(e, instance) { | |
| if (instance && instance.$refs && instance.$refs.stage) { | |
| instance.$refs.stage.off('mousewheel DOMMouseScroll wheel MozMousePixelScroll'); | |
| instance.$refs.stage.on('mousewheel DOMMouseScroll wheel MozMousePixelScroll', function(e) { | |
| e.preventDefault(); |
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
| document.addEventListener('DOMContentLoaded', function() { | |
| const links = document.querySelectorAll('.my-link'); | |
| const popoverButtons = document.querySelectorAll('#%%ELEMENT_ID%% .oxy-popover_marker'); | |
| links.forEach((link, index) => { | |
| const correspondingButton = popoverButtons[index]; | |
| if (correspondingButton) { | |
| // Click handler |
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_action( 'wp_footer', function() { | |
| // Option 1: Remove on specific pages | |
| if ( is_page( array( 'your-page-slug', 'another-page' ) ) ) { | |
| wp_dequeue_script( 'glossary-hovercards' ); | |
| wp_deregister_script( 'glossary-hovercards' ); | |
| } |
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 | |
| function my_get_calendar_events() { | |
| // Custom post type slug | |
| $post_type = 'event'; | |
| // ACF field names (post-level) | |
| $field_color = 'event_color'; | |
| $field_start = 'event_start_date'; |
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
| [ | |
| { | |
| "key": "group_xcalendar_events", | |
| "title": "Event Fields", | |
| "fields": [ | |
| { | |
| "key": "field_xcalendar_basic_info_tab", | |
| "label": "Event Details", | |
| "name": "", | |
| "aria-label": "", |
NewerOlder