Answer the question
In order to leave comments, you need to log in
$APPLICATION->IncludeFile, how to remove div's output?
Hello, I want to display the phone number on the main page using $APPLICATION->IncludeFile so that I can easily edit it later, but I have the phone in the "p" tag and it has certain rules that make it an inline element, and $APPLICATION->IncludeFile frames the included area in a div, which ruins everything for me, how to be, is it possible to include a file without a frame?
Answer the question
In order to leave comments, you need to log in
$APPLICATION->IncludeFile wraps everything in a div in only 2 cases.
1. Editing mode is on
2. There is a div inside the included file
Hello, try passing "SHOW_BORDER" => false in the parameters.
https://dev.1c-bitrix.ru/api_help/main/reference/c...
For example:
<?php
$APPLICATION->IncludeFile("путь к файлу", array(), array("SHOW_BORDER" => false));
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question