qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
9 changed files
with
8 additions
and
16 deletions
| ... | @@ -129,14 +129,6 @@ function megamenu_override_default_theme($value) { | ... | @@ -129,14 +129,6 @@ function megamenu_override_default_theme($value) { |
| 129 | add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 ); | 129 | add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 ); |
| 130 | 130 | ||
| 131 | 131 | ||
| 132 | // add_filter( 'get_custom_logo_image_attributes', function( | ||
| 133 | // $custom_logo_attr, $custom_logo_id, $blog_id ) | ||
| 134 | // { | ||
| 135 | // $custom_logo_attr['class'] = ' no-lazy-load lazyloaded'; | ||
| 136 | // $custom_logo_attr['loading'] = 'eager'; | ||
| 137 | // $custom_logo_attr['decoding'] = 'async'; | ||
| 138 | // return $custom_logo_attr; | ||
| 139 | // } ,10,3); | ||
| 140 | 132 | ||
| 141 | add_post_type_support( 'page', 'excerpt' ); | 133 | add_post_type_support( 'page', 'excerpt' ); |
| 142 | 134 | ... | ... |
| ... | @@ -25,7 +25,7 @@ function filter_query_args( $query_args, $sfid ) { | ... | @@ -25,7 +25,7 @@ function filter_query_args( $query_args, $sfid ) { |
| 25 | return $query_args; | 25 | return $query_args; |
| 26 | 26 | ||
| 27 | } | 27 | } |
| 28 | //add_filter( 'sf_edit_query_args', 'filter_query_args', 99, 2 ); | 28 | add_filter( 'sf_edit_query_args', 'filter_query_args', 99, 2 ); |
| 29 | 29 | ||
| 30 | function relevant_search_result( $q ) { | 30 | function relevant_search_result( $q ) { |
| 31 | if ( is_search() && is_main_query() ) | 31 | if ( is_search() && is_main_query() ) | ... | ... |
| ... | @@ -20753,7 +20753,7 @@ | ... | @@ -20753,7 +20753,7 @@ |
| 20753 | //$('[data-sf-form-id="102"]').trigger("submit"); | 20753 | //$('[data-sf-form-id="102"]').trigger("submit"); |
| 20754 | $('.searching-loading').show(); | 20754 | $('.searching-loading').show(); |
| 20755 | $('.overlay').show(); | 20755 | $('.overlay').show(); |
| 20756 | $('#full-width-page-wrapper #content').css('opacity', '0'); | 20756 | //$('#full-width-page-wrapper #content').css('opacity', '0'); |
| 20757 | setTimeout(() => { | 20757 | setTimeout(() => { |
| 20758 | window.location.href = window.location.href; | 20758 | window.location.href = window.location.href; |
| 20759 | }, "3000"); | 20759 | }, "3000"); |
| ... | @@ -26476,7 +26476,7 @@ | ... | @@ -26476,7 +26476,7 @@ |
| 26476 | var origOpen = XMLHttpRequest.prototype.open; | 26476 | var origOpen = XMLHttpRequest.prototype.open; |
| 26477 | XMLHttpRequest.prototype.open = function (method, url) { | 26477 | XMLHttpRequest.prototype.open = function (method, url) { |
| 26478 | this.addEventListener('load', function () { | 26478 | this.addEventListener('load', function () { |
| 26479 | if (url.includes('search')) { | 26479 | if (url.includes('search') && $("#search-wrapper").length) { |
| 26480 | setTimeout(function () { | 26480 | setTimeout(function () { |
| 26481 | $('html, body, #page').animate({ | 26481 | $('html, body, #page').animate({ |
| 26482 | scrollTop: $("#search-wrapper").offset().top - 250 | 26482 | scrollTop: $("#search-wrapper").offset().top - 250 |
| ... | @@ -26485,7 +26485,7 @@ | ... | @@ -26485,7 +26485,7 @@ |
| 26485 | trim_text(); | 26485 | trim_text(); |
| 26486 | }, 100); | 26486 | }, 100); |
| 26487 | } | 26487 | } |
| 26488 | if (url.includes('news')) { | 26488 | if (url.includes('news') && $("#search-wrapper").length) { |
| 26489 | setTimeout(function () { | 26489 | setTimeout(function () { |
| 26490 | $('html, body, #page').animate({ | 26490 | $('html, body, #page').animate({ |
| 26491 | scrollTop: $("#search-wrapper").offset().top - 250 | 26491 | scrollTop: $("#search-wrapper").offset().top - 250 | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -112,7 +112,7 @@ var Search = (function($) { | ... | @@ -112,7 +112,7 @@ var Search = (function($) { |
| 112 | //$('[data-sf-form-id="102"]').trigger("submit"); | 112 | //$('[data-sf-form-id="102"]').trigger("submit"); |
| 113 | $('.searching-loading').show(); | 113 | $('.searching-loading').show(); |
| 114 | $('.overlay').show(); | 114 | $('.overlay').show(); |
| 115 | $('#full-width-page-wrapper #content').css('opacity', '0'); | 115 | //$('#full-width-page-wrapper #content').css('opacity', '0'); |
| 116 | setTimeout(() => { | 116 | setTimeout(() => { |
| 117 | window.location.href = window.location.href | 117 | window.location.href = window.location.href |
| 118 | }, "3000"); | 118 | }, "3000"); | ... | ... |
| ... | @@ -78,7 +78,7 @@ jQuery(document).ready(function($) { | ... | @@ -78,7 +78,7 @@ jQuery(document).ready(function($) { |
| 78 | var origOpen = XMLHttpRequest.prototype.open; | 78 | var origOpen = XMLHttpRequest.prototype.open; |
| 79 | XMLHttpRequest.prototype.open = function(method, url) { | 79 | XMLHttpRequest.prototype.open = function(method, url) { |
| 80 | this.addEventListener('load', function() { | 80 | this.addEventListener('load', function() { |
| 81 | if(url.includes('search')){ | 81 | if(url.includes('search') && $("#search-wrapper").length){ |
| 82 | setTimeout(function(){ | 82 | setTimeout(function(){ |
| 83 | $('html, body, #page').animate({ | 83 | $('html, body, #page').animate({ |
| 84 | scrollTop: $("#search-wrapper").offset().top - 250 | 84 | scrollTop: $("#search-wrapper").offset().top - 250 |
| ... | @@ -87,7 +87,7 @@ jQuery(document).ready(function($) { | ... | @@ -87,7 +87,7 @@ jQuery(document).ready(function($) { |
| 87 | trim_text(); | 87 | trim_text(); |
| 88 | }, 100); | 88 | }, 100); |
| 89 | } | 89 | } |
| 90 | if(url.includes('news')){ | 90 | if(url.includes('news') && $("#search-wrapper").length){ |
| 91 | setTimeout(function(){ | 91 | setTimeout(function(){ |
| 92 | $('html, body, #page').animate({ | 92 | $('html, body, #page').animate({ |
| 93 | scrollTop: $("#search-wrapper").offset().top - 250 | 93 | scrollTop: $("#search-wrapper").offset().top - 250 | ... | ... |
| ... | @@ -2,5 +2,5 @@ | ... | @@ -2,5 +2,5 @@ |
| 2 | Theme Name: MSF CA Child | 2 | Theme Name: MSF CA Child |
| 3 | Author: Tenzing Communications | 3 | Author: Tenzing Communications |
| 4 | Template: msf-ca | 4 | Template: msf-ca |
| 5 | Version: 1.0.51 | 5 | Version: 1.0.52 |
| 6 | */ | 6 | */ |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment