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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,260 views 25 10
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