Batch Demote/Promote headings?

I have a number of pages where I need to demote all the Heading 1's to Heading 2, and the Heading 2's to 3. Is there a more efficient way to do this than manually changing the paragraph formatting for each one? Thank you!

1 answer

1 accepted

0 votes
Accepted answer

Hey JRR,

There's a little work around to achieve that:

  1. Install Confluence Source Editor plugin.
  2. Go to the Page you want to do that and click in Edit.
  3. Next to the magnefier icon you will see a new button "<>", click on it.

That will open the page in the source editor mode, once your page is open you will notice that the header syntax is the following:

<h1>Heading 1</h1>

<p>some text</p>

<h2>Heading 2</h2>

<p>some text</p>

<h3>Heading 3</h3>

<p>some text</p>

All that you will need to do is to change the h1 to h2 and h2 to h3:

<h2>Heading 1</h2>

<p>some text</p>

<h3>Heading 2</h3>

<p>some text</p>

<h3>Heading 3</h3>

<p>some text</p>

Since source editor window have a find and replace all you need to do is to use that option do change all the <h1> to <h2> and do a replace all and hit save :).

Hope it helps.
Thanks and Regards,
David|Atlassian Support

Thank you David/Deividi. That's good motivation for me to bug my admin to let me use the Source Editor plugin!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

68 views 3 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you