Answer the question
In order to leave comments, you need to log in
How to merge the header of all 1C-Bitrix templates?
I'm sitting figuring out someone else's 1C-Bitrix site/code.
I want to change the layout a bit. Thanks to the documentation, it finally dawned on me that in Bitrix there is not one template as usual for the entire site, but a bunch of different templates for different pages. At least that's what the developer did before me.
Answer the question
In order to leave comments, you need to log in
Thanks to the documentation, it finally dawned on me that in Bitrix there is not one template as usual for the entire site, but a bunch of different templates for different pages.
But the fact is that most of these pages, especially footer.php and header.php are almost the same. The difference happens in 1-2 .js, .css files.
Is this the suffering of Bitrix developers or is there a correct solution?
There is some common header.php/footer.php file where I can write everything 1 time.
And how can I, according to the condition of the page id or its type, or some other parameter, load the scripts I need pointwise?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question