I
I
IvanRobot2016-04-18 15:52:49
PHP
IvanRobot, 2016-04-18 15:52:49

Why are styles loaded from a non-main template?

s03DDDd.png
The main template is located here /bitrix/templates/ dir_name/ and contains the following line:

<link href="<?=SITE_TEMPLATE_PATH?>/common.css" type="text/css" rel="stylesheet" />

At the same time, I edit the styles in / local/ templates/ dir_common/ common.css
and everything works .. but I don’t understand how this happens

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-04-18
@IvanRobot

the local folder has priority over the bitrix folder
This means that if /local/templates/ and /bitrix/templates/ contain site templates with the same name, the template from /local will be connected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question