aa54cbac by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 3ecdfd27
......@@ -129,14 +129,6 @@ function megamenu_override_default_theme($value) {
add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 );
// add_filter( 'get_custom_logo_image_attributes', function(
// $custom_logo_attr, $custom_logo_id, $blog_id )
// {
// $custom_logo_attr['class'] = ' no-lazy-load lazyloaded';
// $custom_logo_attr['loading'] = 'eager';
// $custom_logo_attr['decoding'] = 'async';
// return $custom_logo_attr;
// } ,10,3);
add_post_type_support( 'page', 'excerpt' );
......
......@@ -25,7 +25,7 @@ function filter_query_args( $query_args, $sfid ) {
return $query_args;
}
//add_filter( 'sf_edit_query_args', 'filter_query_args', 99, 2 );
add_filter( 'sf_edit_query_args', 'filter_query_args', 99, 2 );
function relevant_search_result( $q ) {
if ( is_search() && is_main_query() )
......
......@@ -20753,7 +20753,7 @@
//$('[data-sf-form-id="102"]').trigger("submit");
$('.searching-loading').show();
$('.overlay').show();
$('#full-width-page-wrapper #content').css('opacity', '0');
//$('#full-width-page-wrapper #content').css('opacity', '0');
setTimeout(() => {
window.location.href = window.location.href;
}, "3000");
......@@ -26476,7 +26476,7 @@
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (method, url) {
this.addEventListener('load', function () {
if (url.includes('search')) {
if (url.includes('search') && $("#search-wrapper").length) {
setTimeout(function () {
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
......@@ -26485,7 +26485,7 @@
trim_text();
}, 100);
}
if (url.includes('news')) {
if (url.includes('news') && $("#search-wrapper").length) {
setTimeout(function () {
$('html, body, #page').animate({
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($) {
//$('[data-sf-form-id="102"]').trigger("submit");
$('.searching-loading').show();
$('.overlay').show();
$('#full-width-page-wrapper #content').css('opacity', '0');
//$('#full-width-page-wrapper #content').css('opacity', '0');
setTimeout(() => {
window.location.href = window.location.href
}, "3000");
......
......@@ -78,7 +78,7 @@ jQuery(document).ready(function($) {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
this.addEventListener('load', function() {
if(url.includes('search')){
if(url.includes('search') && $("#search-wrapper").length){
setTimeout(function(){
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
......@@ -87,7 +87,7 @@ jQuery(document).ready(function($) {
trim_text();
}, 100);
}
if(url.includes('news')){
if(url.includes('news') && $("#search-wrapper").length){
setTimeout(function(){
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
......
......@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.51
Version: 1.0.52
*/
\ No newline at end of file
......