sebastian13 / magento2-module-bootstrap
从CDN添加Bootstrap库。
4.3.1.1
2019-04-13 19:14 UTC
README
添加Twitter Bootstrap库的javascript包和CSS,当CDN离线时有回退机制。
安装
- Composer
composer require sebastian13/magento2-module-bootstrap "4.3.1.*" --no-update
composer update
- 设置Magento
php bin/magento module:enable Sebastian13_Bootstrap php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
用法
将以下代码片段放入 Magento 主题的 Magento_Theme/template/html/header.phtml
<script type="text/javascript"> require(['jquery.bootstrap']); </script>