diff --git a/components/components-core.php b/components/components-core.php index 5b8a2ede6..0b777fb7a 100644 --- a/components/components-core.php +++ b/components/components-core.php @@ -360,6 +360,10 @@ function ampforwp_sanitize_archive_desc(){ } if( true == ampforwp_get_setting('amp-rtl-select-option') ){ $bodyClass .= ' rtl '; + } + $lightbox = ''; + if( false == ampforwp_get_setting('ampforwp-amp-img-lightbox') ){ + $lightbox = 'data-amp-auto-lightbox-disable'; } ?> get( 'html_tag_attributes' ) ); ?>> @@ -391,7 +395,7 @@ function ampforwp_sanitize_archive_desc(){ - > + >