Answer the question
In order to leave comments, you need to log in
How to find a Bitrix page template?
We placed a spam script on the site with a redirect to a spam site, I can’t find the file where they could put it.
I didn’t find it in the /bitrix/header directory, I changed all index.php, where I removed it, but it still loads from somewhere, what options can there be?
Answer the question
In order to leave comments, you need to log in
Bitrix Templates - /bitrix/templates
Actually, you can just look at the "Website Templates" in the admin panel - there is an editor of the same files.
Typical Bitrix header template. See for yourself how many places you can shove.
<head>
<?IncludeTemplateLangFile(__FILE__);?> - //подключение lang (языковых) файлов
<?$APPLICATION->ShowHead();?> - //Подключает стили и скрипты из основного шаблона
<title><?$APPLICATION->ShowTitle()?></title> - //вывод тайтла в основном шаблоне сайта
<?$APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH.'/css/my-css.css');?> - //подключение CSS
//из шаблона
<?$APPLICATION->SetAdditionalCSS("/bitrix/templates/.default/css/my-css.css")?> - //подключение css
//по прямому пути
<?$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/my-js.js');?> - //подключение JS из шаблона
<?$APPLICATION->AddHeadScript('/bitrix/templates/.default/js/my-js.js')?> - //подключение JS
//по прямому пути
<link rel="shortcut icon" type="image/x-icon" href="<?=SITE_TEMPLATE_PATH?>/favicon.ico" /> -
//подключение favicon
</head>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question