How to wrap a CMS page content with a HTML tag with a custom CSS class?

Solution

You can do it by setting the «Design» → «Layout Update XML» backend option for the CMS page, for example:

<referenceContainer name='content'>
	<container 
		name='content-inner' 
		as='content-inner'
		htmlTag='div' 
		htmlClass='content-inner' 
	/>
</referenceContainer>
<move element='cms_page' destination='content-inner'/>

See also: