Custom 1C-Bitrix Site Template Development from Scratch
Our experience shows: standard templates from the Bitrix Marketplace solve no more than 20% of real business tasks. The remaining 80% require custom work: unique design, non-standard page structure, specific performance requirements, or integration with external systems. Developing a template on top of a ready-made Marketplace one is a path to technical debt: foreign styles and scripts conflict, and template updates overwrite edits. Over 8 years we have created more than 50 custom templates for various industries — from online stores to B2B portals. Each project begins with a business requirements audit and selection of the optimal template architecture. This guarantees no overpayment for unnecessary functionality and high development speed. Below are technical details to help you make a decision.
Why Abandon a Ready-Made Template
A ready-made theme from the Marketplace is a compromise. You pay for functionality that is often unnecessary and get code that is difficult to adapt. A custom template is written for specific business processes: integration with 1C via API, complex access rights for dealers, individual fiscalization under 54-FZ. We guarantee that such a template will not require rewriting in a year. Support cost savings amount to up to 30% compared to constant modifications of a ready-made solution. Over 3 years of ownership, a custom template saves more than 500,000 rubles on maintenance, and development pays off in 6 months.
Impact on Performance
A custom template without extra modules and styles is typically lighter and faster. We include only necessary CSS/JS, use modern bundlers (Vite, Webpack) with tree-shaking, and implement tagged caching — this yields up to 40% speed improvement compared to typical solutions. Thanks to managed caching via CPHPCache and managed_cache, page load times under high load are reduced by 2-3 times. We also optimize header.php and footer.php which render on every request, minimizing their weight.
Custom Template Structure
A custom template is created in /local/templates/<template_name>/. Using /local/ is crucial: this folder is not affected by Bitrix updates. Minimal structure:
/local/templates/main/
header.php — site header, CSS/JS inclusion
footer.php — footer, closing tags
styles.css — main styles (or build inclusion)
script.js — main scripts
.parameters.php — template settings (optional)
components/ — component template overrides
page_templates/ — page type templates
images/ — template images
In header.php, resources are included via $APPLICATION->SetAdditionalCSS() and $APPLICATION->AddHeadScript(). For modern projects we use a bundler (Vite, Webpack) outputting to the template folder.
Asset Pipeline for Resource Inclusion
Bitrix supports two approaches. First is native: CUtil::InitJSCore(), Asset::getInstance()->addJs(). Files are served directly, concatenation is possible via the main module settings. Second is via a bundler: npm run build generates minified bundles into /local/templates/main/assets/. In header.php, the final file is included. This approach is preferred: tree-shaking, PostCSS, modern JS with transpilation. For projects with Vue or React in the frontend, the Bitrix template acts as a shell: renders HTML containers and passes data via <script> with JSON assembled from $arResult components.
Page Types in the Template
In the page_templates/ folder, PHP files with different page layouts are stored. For example: layout-fullwidth.php (without sidebar), layout-sidebar.php (with side column), layout-landing.php (without header/footer for landing pages). The editor selects the page type in the admin panel. This allows one template to cover different page structures without code duplication.
Case Study: B2B Portal Template
A manufacturing company (our client), Bitrix "Business". Requirements: dealer personal account with individual prices, catalog without public access, integration with 1C via API. The standard template was unsuitable — a custom navigation based on user groups was needed. We developed a template from scratch in /local/templates/b2b/. In header.php — authorization check via $USER->IsAuthorized(), for unauthorized users — redirect to login page. Navigation dynamically built via bitrix:menu with a custom template showing menu items based on user group. Styles — Tailwind CSS via PostCSS, Vite build. Result: template from scratch in 3 weeks, including templates for main catalog components and personal account.
Considerations During Development
-
Edit mode — when the admin panel is on, Bitrix adds overlays for content editing. The template must work correctly with
bx-editmode-overlayclasses. -
SEO meta —
$APPLICATION->SetTitle(),$APPLICATION->SetKeywords(),$APPLICATION->SetDescription()are called in components; the template must output them in<head>via appropriate methods. -
Caching —
managed_cacheandCPHPCachecache component output, but notheader.php/footer.php— they render on every request. - Security — the template must not contain direct SQL queries; all data through Bitrix API.
According to official documentation, a template in /local/ is not affected by updates, confirming its long-term stability.
Comparison: Custom vs Ready-Made Template
| Criterion | Custom Template | Ready-Made Template |
|---|---|---|
| Load speed | High (clean code, minimal CSS/JS) | Medium (many extra styles and scripts) |
| Adaptation to business logic | Full | Limited |
| Bitrix updates | Not affected | May reset edits |
| Ownership cost (3 years) | Lower due to no modifications | Higher due to constant customization |
Development Timelines
| Template Scope | Timeline |
|---|---|
| Simple template (up to 5 page types, basic components) | 2–4 weeks |
| Medium template (5–15 page types, custom components) | 4–8 weeks |
| Complex template (B2B, personal account, non-standard logic) | 8–16 weeks |
Our Process
- Requirements analysis — gather specifications, study integrations, measure loads, define page types.
- Design — create file structure prototype, template mockup, select stack (bundler, CSS framework).
- Implementation — write header.php/footer.php, configure Asset Pipeline, create page_templates, override necessary components.
- Testing — verify on all page types, in different browsers, with different access rights.
- Deployment and documentation — upload to production server, provide instructions for modifications.
What’s Included in Deliverables
- Full template archive with file structure.
- Documentation on connection and customization.
- Configured caching and performance optimization.
- Guarantee of correct operation after Bitrix updates.
- Free consultation on modifications within a month after delivery.
To evaluate a project, just describe the task — we will determine complexity and propose the optimal solution. Contact us to discuss your project. We guarantee transparent timelines and full compliance with the technical specification. Experience with over 50 successfully implemented templates is your insurance against missed deadlines. Get a consultation right now.
Additional information: the concept of website templates is described in the Wikipedia article. For an in-depth study of Bitrix capabilities, we recommend the official documentation.







