Simple Pages title alignment / justification

A researcher I’m working for would like Simple Page titles to be centre-aligned. Is there any easy way of doing this?

Thank you.

Using the CSSEditor plugin, you can apply the following style:

.simple-page #primary > h1:first-child {
  text-align: center;

This targets and centers the first heading within the primary content area on a simple page.

Thanks for reply Kim. Couldn’t get this to work. Tried clearing cache & in another browser. The plugin changes the > to \3E but guess that’s fine.

Remove the “>” and it should still work, though other h1 elements on the simple page may also be centered.

Removing the > does work. I hope the researcher will be happy. Many thanks!

This topic was automatically closed after 250 days. New replies are no longer allowed.