I
I
Ivan Kasatkin2021-06-09 05:57:46
1C-Bitrix
Ivan Kasatkin, 2021-06-09 05:57:46

Why styles are not connected to Bitrix?

I do not know what to do. The code seems to be correct, the paths are also indicated, but the styles stubbornly do not connect

<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)	die();?>
<?php
    use Bitrix\Main\Page\Asset;
?>

<!DOCTYPE html>
<html lang="ru">

<head>
<? $APPLICATION->ShowHead(); ?>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
     <?$APPLICATION->ShowHead();?>
  <title><?$APPLICATION->ShowTitle();?></title>

<?
  $asset = Asset::getInstance();
  $asset->addCss(SITE_TEMPLATE_PATH."css/owl.carousel.min.css");
  $asset->addCss(SITE_TEMPLATE_PATH."css/slick.css");
  $asset->addCss(SITE_TEMPLATE_PATH."css/slick-theme.css");
  $asset->addCss(SITE_TEMPLATE_PATH."css/owl.theme.default.min.css");
  $asset->addCss(SITE_TEMPLATE_PATH."/css/style.css");
  $asset->addCss(SITE_TEMPLATE_PATH.'https://fonts.googleapis.com/css?family=Poppins:400,500,700');
  $asset->addCss(SITE_TEMPLATE_PATH.'https://fonts.googleapis.com/css?family=Roboto:400,500,700');

  $asset->addJS(SITE_TEMPLATE_PATH."js/jquery.js");
  $asset->addJS(SITE_TEMPLATE_PATH."js/bootstrap.min.js");
  $asset->addJS(SITE_TEMPLATE_PATH."js/owl.carousel.min.js");
  $asset->addJS(SITE_TEMPLATE_PATH."js/slick.min.js");
  $asset->addJS(SITE_TEMPLATE_PATH."js/countdown.js");
  $asset->addJS(SITE_TEMPLATE_PATH."js/main.js");
?>

</head>
<body>

60c02e1d9bc9a692683830.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kasatkin, 2021-06-09
@Dublet

Most likely, I just forgot to add an 's' to the word 'style'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question