A
A
Alexey Verkhovtsev2016-08-07 14:50:31
PHP
Alexey Verkhovtsev, 2016-08-07 14:50:31

$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

2 answer(s)
A
Andrey Savrasov, 2016-08-07
@seftomsk

$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

M
Maxim Kirshin, 2019-10-11
@meowto16

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 question

Ask a Question

731 491 924 answers to any question