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
| <script> | |
| jQuery(document).ready(function($) { | |
| const observer = new MutationObserver(() => { jQuery('.elementor-testimonial').each(function() { jQuery(this).parent().css({height:parseFloat(jQuery(this).height()) + Number(60)}); | |
| if(jQuery(this).parent().hasClass('swiper-slide-active')){ | |
| jQuery(this).parent().parent().parent().css({height:parseFloat(jQuery(this).height()) + Number(60)}) | |
| } }); | |
| }); | |
| observer.observe(document.body, { attributes: true, attributeFilter: ['class'], subtree: true, }); }); | |
| </script> |
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 | |
| // from https://snippets.khromov.se/how-to-cache-the-wp_oembed_get-function/ | |
| define('CUSTOM_OEMBED_CACHE_KEY', 'coc_'); | |
| function _wp_custom_oembed_cache_key($url, $args) { | |
| $args_serialized = serialize($args); | |
| return CUSTOM_OEMBED_CACHE_KEY . md5("{$url}-{$args_serialized}"); | |
| } |
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('use_block_editor_for_post_type', 'remove_gutemberg', 10, 2); | |
| function remove_gutemberg($can_edit, $post_type){ | |
| if($post_type == 'page'){ | |
| return false; | |
| } |