Parallel to recommend not using h1 we did some adaptions to the editors. We only show h2 to h6 in the wysiwyg editors.
Following code snippets are active in our wysiwyg editor config:
CKEDITOR.config.format_tags = 'p;h2;h3;h4;h5;h6;pre';
config.removeQuickActions = ['h1',…
In the wiki editor we hide h1 with css (that’s not a cool selector for the lack of a better one):
#xwikieditcontentinner > div.leftmenu2 > a:nth-child(12) {
display: none;
}
Our first approach was stepping up the level in the wysiwyg editor config what worked but did some confusion on some users knowing about “only one h1 per page”. The not existing h7 was a problem too.
In the end we decided to hide h1 on all places we can and explain why we do this.
Nevertheless people using the wiki editor (not so many) can create a h1. I expect people who write syntax to be a bit more familiar with the rules. Importing word documents can create bad h1 too. But some things can’t be solved entirely.