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
Answer accepted

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
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

734 views 2 13
Read article

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