sebastian13/magento2-module-bootstrap

Adds Bootstrap library from CDN.

Installs: 658

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3

Language:JavaScript

Type:magento2-module

4.3.1.1 2019-04-13 19:14 UTC

This package is auto-updated.

Last update: 2025-09-14 10:24:54 UTC


README

bootstrap version packagist version

Add Twitter Bootstrap library's javascript bundle and CSS from CDN. There's also a fallback when CDN is offline.

Installation

  1. Composer:
composer require sebastian13/magento2-module-bootstrap "4.3.1.*" --no-update
composer update
  1. Setup Magento
php bin/magento module:enable Sebastian13_Bootstrap
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Usage

Put this snippet into a Magento Theme in Magento_Theme/template/html/header.phtml

<script type="text/javascript">
   require(['jquery.bootstrap']);
</script>