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": "", |
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
| /* to make them more visible (default was 0.4) */ | |
| #bricks-structure .structure-item svg { | |
| opacity: 1; | |
| } | |
| /* to change the color of the arrows */ | |
| #bricks-structure .toggle svg { | |
| color: red; | |
| } |
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 | |
| class X_Test_Element extends \Bricks\Element { | |
| // Element properties | |
| public $category = "general"; | |
| public $name = "xtestelement"; | |
| public $icon = "ti-layout-width-full"; | |
| public function get_label() { | |
| return esc_html__("Test element", "bricks"); |
NewerOlder