Felix
Felix

Reputation: 5619

TYPO3 renders header as h2 not as h1

My TYPO3 ver.: 7 renders the content element header as h2 and not as h1 ... how can I solve this issue?

enter image description here

enter image description here

Upvotes: 1

Views: 3670

Answers (2)

user10235444
user10235444

Reputation: 1

If you are using the Bootstrap-Package, goto: Templates > Constant Editor > BOOTSTRAP PACKAGE: CONTENT ELEMENTS > Header

Edit the following constant: plugin.bootstrap_package_contentelements.header.defaultHeaderType = 1

Upvotes: 0

maxhb
maxhb

Reputation: 8845

The typoscript you showed sets the default header level to 2 aka <h2>...</h2>

styles.content.defaultHeaderType = 2

You can change this behavior by changing that value via typoscript

styles.content.defaultHeaderType = 1

This setting needs to be done in the constants field of a typoscript template.

A little more information can be found at https://buzz.typo3.org/people/ron-hall/article/changing-the-default-header-for-content-elements/

Upvotes: 11

Related Questions