D
D
Dmitry Zorin2021-06-07 16:37:37
1C-Bitrix
Dmitry Zorin, 2021-06-07 16:37:37

How to change Bitrix catalog title tag?

The standard Bitrix catalog component displays category titles in the h1 tag id="pagetitle" (the same with the product detail page)
How to change the output so that instead of the h1 tag there is, for example, strong in the category title? I didn't find the header output in the catalog.section file
I want to manually set the h1 headers in the category description

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-06-07
@rpsv

Look for the component template, not the component file. Located:
1. /local/templates/[site template]/components/bitrix/catalog.section/[template name]/template.php
2. /local/templates/.default/components/bitrix/catalog.section/[name template]/template.php
3. /bitrix/templates/[site template]/components/bitrix/catalog.section/[template name]/template.php
4. /bitrix/templates/.default/components/bitrix/catalog. section/[template name]/template.php
If not customized, then copy the current component template to directory 1 or 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question