Answer the question
In order to leave comments, you need to log in
Why did bootstrap connect to the bitrix site?
I cleared the cache of the site and the layout went.
Error in console
Access to CSS stylesheet at 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css' from origin 'http://mysite-bitrix.ms.ru' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
Answer the question
In order to leave comments, you need to log in
Good afternoon!
Bitrix already has Bootstrap, why pull a third-party one?
It lies at the address - /bitrix/js/ui/bootstrap4/
If it exists, you can connect it like this:
use Bitrix\Main\UI\Extension;
Extension::load('ui.bootstrap4');
In the header I write
use Bitrix\Main\UI\Extension;
Extension::load('ui.bootstrap4');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question