msdf fixes
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
14 changed files
with
30 additions
and
15 deletions
| ... | @@ -48,7 +48,8 @@ $carousel_style = get_field('carousel_style'); | ... | @@ -48,7 +48,8 @@ $carousel_style = get_field('carousel_style'); |
| 48 | <?php $image = get_sub_field('image'); ?> | 48 | <?php $image = get_sub_field('image'); ?> |
| 49 | <div class="row"> | 49 | <div class="row"> |
| 50 | <div class="col-lg-4 col-md-12 promo-image" > | 50 | <div class="col-lg-4 col-md-12 promo-image" > |
| 51 | <?php echo get_the_post_thumbnail( $page->ID, 'large' ); ?> | 51 | <?php $image = get_the_post_thumbnail_url( $page->ID, 'large', array('class' => 'no-lazy-load') ); ?> |
| 52 | <img src="<?php echo $image; ?>" alt="" loading="eager"> | ||
| 52 | </div> | 53 | </div> |
| 53 | <div class="col-lg-8 col-md-12"> | 54 | <div class="col-lg-8 col-md-12"> |
| 54 | <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> | 55 | <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 { | ... | @@ -16876,6 +16876,8 @@ html.mega-menu-primary-off-canvas-open #wpadminbar { |
| 16876 | } | 16876 | } |
| 16877 | .branding .navbar-brand { | 16877 | .branding .navbar-brand { |
| 16878 | margin-right: 0px; | 16878 | margin-right: 0px; |
| 16879 | width: 150px; | ||
| 16880 | height: 70px; | ||
| 16879 | } | 16881 | } |
| 16880 | @media only screen and (max-width: 48.875rem) { | 16882 | @media only screen and (max-width: 48.875rem) { |
| 16881 | .branding .navbar-brand { | 16883 | .branding .navbar-brand { |
| ... | @@ -18890,9 +18892,11 @@ ul.sf_date_field .sf-datepicker { | ... | @@ -18890,9 +18892,11 @@ ul.sf_date_field .sf-datepicker { |
| 18890 | color: #fff; | 18892 | color: #fff; |
| 18891 | } | 18893 | } |
| 18892 | 18894 | ||
| 18895 | #search-filter-form-687 li, | ||
| 18893 | #search-filter-form-719 li { | 18896 | #search-filter-form-719 li { |
| 18894 | display: none !important; | 18897 | display: none !important; |
| 18895 | } | 18898 | } |
| 18899 | #search-filter-form-687 .sf-field-search, | ||
| 18896 | #search-filter-form-719 .sf-field-search { | 18900 | #search-filter-form-719 .sf-field-search { |
| 18897 | display: inline-block !important; | 18901 | display: inline-block !important; |
| 18898 | } | 18902 | } | ... | ... |
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.
| ... | @@ -115,3 +115,15 @@ function megamenu_override_default_theme($value) { | ... | @@ -115,3 +115,15 @@ function megamenu_override_default_theme($value) { |
| 115 | 115 | ||
| 116 | } | 116 | } |
| 117 | add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 ); | 117 | add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 ); |
| 118 | |||
| 119 | |||
| 120 | add_filter( 'get_custom_logo_image_attributes', function( | ||
| 121 | $custom_logo_attr, $custom_logo_id, $blog_id ) | ||
| 122 | { | ||
| 123 | $custom_logo_attr['class'] = ' no-lazy-load lazyloaded'; | ||
| 124 | $custom_logo_attr['loading'] = 'eager'; | ||
| 125 | $custom_logo_attr['decoding'] = 'async'; | ||
| 126 | return $custom_logo_attr; | ||
| 127 | } ,10,3); | ||
| 128 | |||
| 129 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -26159,7 +26159,6 @@ | ... | @@ -26159,7 +26159,6 @@ |
| 26159 | styleInject(css_248z); | 26159 | styleInject(css_248z); |
| 26160 | 26160 | ||
| 26161 | jQuery(document).ready(function ($) { | 26161 | jQuery(document).ready(function ($) { |
| 26162 | var myLazyLoad = new LazyLoad(); | ||
| 26163 | jQuery('.carousel-items').each(function () { | 26162 | jQuery('.carousel-items').each(function () { |
| 26164 | //var offset = ((window.innerWidth - $('#content').width()) / 2) - 28; | 26163 | //var offset = ((window.innerWidth - $('#content').width()) / 2) - 28; |
| 26165 | //var offsetAfter = ((window.innerWidth - $('#content').width()) / 2) - 28; | 26164 | //var offsetAfter = ((window.innerWidth - $('#content').width()) / 2) - 28; |
| ... | @@ -26203,11 +26202,7 @@ | ... | @@ -26203,11 +26202,7 @@ |
| 26203 | onlyInViewport: false | 26202 | onlyInViewport: false |
| 26204 | } | 26203 | } |
| 26205 | }; | 26204 | }; |
| 26206 | var mySwiper = new Swiper(this, swiper_params); | 26205 | new Swiper(this, swiper_params); |
| 26207 | mySwiper.on('slideChange', function () { | ||
| 26208 | console.log('slideChange'); | ||
| 26209 | setTimeout(myLazyLoad.update(), 2000); | ||
| 26210 | }); | ||
| 26211 | }); | 26206 | }); |
| 26212 | $('.carousel ').css('margin-left', "-" + $('#content').css('margin-left')); | 26207 | $('.carousel ').css('margin-left', "-" + $('#content').css('margin-left')); |
| 26213 | $(window).on('resize', function () { | 26208 | $(window).on('resize', function () { |
| ... | @@ -26216,7 +26211,9 @@ | ... | @@ -26216,7 +26211,9 @@ |
| 26216 | }); | 26211 | }); |
| 26217 | 26212 | ||
| 26218 | // Add your custom JS here. | 26213 | // Add your custom JS here. |
| 26219 | var myLazyLoad = new LazyLoad(); | 26214 | var myLazyLoad = new LazyLoad({ |
| 26215 | elements_selector: ":not(.no-lazy-load)" | ||
| 26216 | }); | ||
| 26220 | window.tz_checkVisible = function (elm, evalType, offset, heightBuffer) { | 26217 | window.tz_checkVisible = function (elm, evalType, offset, heightBuffer) { |
| 26221 | evalType = evalType || "visible"; | 26218 | evalType = evalType || "visible"; |
| 26222 | var vpH = jQuery(window).height(), | 26219 | 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"; | ... | @@ -13,7 +13,7 @@ import LazyLoad from "vanilla-lazyload"; |
| 13 | 13 | ||
| 14 | jQuery(document).ready(function($) { | 14 | jQuery(document).ready(function($) { |
| 15 | 15 | ||
| 16 | var myLazyLoad = new LazyLoad(); | 16 | |
| 17 | 17 | ||
| 18 | jQuery('.carousel-items').each(function() { | 18 | jQuery('.carousel-items').each(function() { |
| 19 | 19 | ||
| ... | @@ -73,10 +73,6 @@ jQuery(document).ready(function($) { | ... | @@ -73,10 +73,6 @@ jQuery(document).ready(function($) { |
| 73 | 73 | ||
| 74 | var mySwiper = new Swiper(this, swiper_params); | 74 | var mySwiper = new Swiper(this, swiper_params); |
| 75 | 75 | ||
| 76 | mySwiper.on('slideChange', function () { | ||
| 77 | console.log('slideChange'); | ||
| 78 | setTimeout( myLazyLoad.update(), 2000); | ||
| 79 | }); | ||
| 80 | 76 | ||
| 81 | }); | 77 | }); |
| 82 | $('.carousel ').css('margin-left',"-"+$('#content').css('margin-left')); | 78 | $('.carousel ').css('margin-left',"-"+$('#content').css('margin-left')); | ... | ... |
| ... | @@ -17,7 +17,9 @@ import "./_carousels"; | ... | @@ -17,7 +17,9 @@ import "./_carousels"; |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | var myLazyLoad = new LazyLoad(); | 20 | var myLazyLoad = new LazyLoad({ |
| 21 | elements_selector: ":not(.no-lazy-load)", | ||
| 22 | }); | ||
| 21 | 23 | ||
| 22 | window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) { | 24 | window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) { |
| 23 | evalType = evalType || "visible"; | 25 | evalType = evalType || "visible"; | ... | ... |
| ... | @@ -25,6 +25,9 @@ | ... | @@ -25,6 +25,9 @@ |
| 25 | position: relative; | 25 | position: relative; |
| 26 | .navbar-brand{ | 26 | .navbar-brand{ |
| 27 | margin-right:0px ; | 27 | margin-right:0px ; |
| 28 | width: 150px; | ||
| 29 | height: 70px; | ||
| 30 | // display: inline-block; | ||
| 28 | @media only screen and (max-width: 48.875rem) { | 31 | @media only screen and (max-width: 48.875rem) { |
| 29 | margin-right:15px ; | 32 | margin-right:15px ; |
| 30 | } | 33 | } | ... | ... |
| ... | @@ -992,7 +992,7 @@ ul.sf_date_field { | ... | @@ -992,7 +992,7 @@ ul.sf_date_field { |
| 992 | // } | 992 | // } |
| 993 | // } | 993 | // } |
| 994 | 994 | ||
| 995 | 995 | #search-filter-form-687, | |
| 996 | #search-filter-form-719{ | 996 | #search-filter-form-719{ |
| 997 | li{ | 997 | li{ |
| 998 | display: none !important; | 998 | display: none !important; | ... | ... |
-
Please register or sign in to post a comment