The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
| <?php | |
| /** | |
| * Add schema to yoast seo breadcrumb | |
| */ | |
| add_filter('wpseo_breadcrumb_links', 'jj_add_crumb_schema', 10, 1); | |
| function jj_add_crumb_schema($crumbs) { | |
| if ( ! is_array( $crumbs ) || $crumbs === array() ) { |
| //http://epsiloncool.ru/programmirovanie/preventing-multiple-submits-in-contact-form-7 | |
| jQuery(document).on('click', '.wpcf7-submit', function(e){ | |
| if( jQuery('.ajax-loader').hasClass('is-active') ) { | |
| e.preventDefault(); | |
| return false; | |
| } | |
| }); |