f5eef36a by Jeff Balicki

msdf fixes

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent be8cb1b4
......@@ -48,7 +48,8 @@ $carousel_style = get_field('carousel_style');
<?php $image = get_sub_field('image'); ?>
<div class="row">
<div class="col-lg-4 col-md-12 promo-image" >
<?php echo get_the_post_thumbnail( $page->ID, 'large' ); ?>
<?php $image = get_the_post_thumbnail_url( $page->ID, 'large', array('class' => 'no-lazy-load') ); ?>
<img src="<?php echo $image; ?>" alt="" loading="eager">
</div>
<div class="col-lg-8 col-md-12">
<div class="promo-text"><?php echo get_the_excerpt($page->ID); ?> <a class="understrap-read-more-link" href="<?php echo get_permalink($page->ID);?>">READ MORE</a></div>
......
......@@ -16876,6 +16876,8 @@ html.mega-menu-primary-off-canvas-open #wpadminbar {
}
.branding .navbar-brand {
margin-right: 0px;
width: 150px;
height: 70px;
}
@media only screen and (max-width: 48.875rem) {
.branding .navbar-brand {
......@@ -18890,9 +18892,11 @@ ul.sf_date_field .sf-datepicker {
color: #fff;
}
#search-filter-form-687 li,
#search-filter-form-719 li {
display: none !important;
}
#search-filter-form-687 .sf-field-search,
#search-filter-form-719 .sf-field-search {
display: inline-block !important;
}
......
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.
......@@ -114,4 +114,16 @@ function megamenu_override_default_theme($value) {
wp_enqueue_script( 'megamenu', get_stylesheet_directory_uri().'/js/maxmegamenu.js' );
}
add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 );
\ No newline at end of file
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);
\ No newline at end of file
......
......@@ -26159,7 +26159,6 @@
styleInject(css_248z);
jQuery(document).ready(function ($) {
var myLazyLoad = new LazyLoad();
jQuery('.carousel-items').each(function () {
//var offset = ((window.innerWidth - $('#content').width()) / 2) - 28;
//var offsetAfter = ((window.innerWidth - $('#content').width()) / 2) - 28;
......@@ -26203,11 +26202,7 @@
onlyInViewport: false
}
};
var mySwiper = new Swiper(this, swiper_params);
mySwiper.on('slideChange', function () {
console.log('slideChange');
setTimeout(myLazyLoad.update(), 2000);
});
new Swiper(this, swiper_params);
});
$('.carousel ').css('margin-left', "-" + $('#content').css('margin-left'));
$(window).on('resize', function () {
......@@ -26216,7 +26211,9 @@
});
// Add your custom JS here.
var myLazyLoad = new LazyLoad();
var myLazyLoad = new LazyLoad({
elements_selector: ":not(.no-lazy-load)"
});
window.tz_checkVisible = function (elm, evalType, offset, heightBuffer) {
evalType = evalType || "visible";
var vpH = jQuery(window).height(),
......
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.
......@@ -13,7 +13,7 @@ import LazyLoad from "vanilla-lazyload";
jQuery(document).ready(function($) {
var myLazyLoad = new LazyLoad();
jQuery('.carousel-items').each(function() {
......@@ -73,10 +73,6 @@ jQuery(document).ready(function($) {
var mySwiper = new Swiper(this, swiper_params);
mySwiper.on('slideChange', function () {
console.log('slideChange');
setTimeout( myLazyLoad.update(), 2000);
});
});
$('.carousel ').css('margin-left',"-"+$('#content').css('margin-left'));
......
......@@ -17,7 +17,9 @@ import "./_carousels";
var myLazyLoad = new LazyLoad();
var myLazyLoad = new LazyLoad({
elements_selector: ":not(.no-lazy-load)",
});
window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) {
evalType = evalType || "visible";
......
......@@ -25,6 +25,9 @@
position: relative;
.navbar-brand{
margin-right:0px ;
width: 150px;
height: 70px;
// display: inline-block;
@media only screen and (max-width: 48.875rem) {
margin-right:15px ;
}
......
......@@ -992,7 +992,7 @@ ul.sf_date_field {
// }
// }
#search-filter-form-687,
#search-filter-form-719{
li{
display: none !important;
......