diff --git a/illinois_framework_theme.libraries.yml b/illinois_framework_theme.libraries.yml index adfbd15..4f96568 100644 --- a/illinois_framework_theme.libraries.yml +++ b/illinois_framework_theme.libraries.yml @@ -41,6 +41,9 @@ ils-contentslider: https://contrib.webtheme.illinois.edu/ils-contentslider/contentslider.min.js: type: external minified: true + js/paragraph-content-slider.js: { } + dependencies: + - core/jquery google-cse: js: js/google-cse.js: { attributes: { async: true } } diff --git a/js/paragraph-content-slider.js b/js/paragraph-content-slider.js new file mode 100644 index 0000000..7872caa --- /dev/null +++ b/js/paragraph-content-slider.js @@ -0,0 +1,3 @@ +jQuery(function($) { + $('ilw-columns .paragraph--type--content-slider ilw-content[width="auto"]').removeAttr('width'); +});