Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hide TOC section numbers


New to Confluence (using on-demand). Working with styling PDF output and I'd like to hide section numbers in the table of contents.

With regular output, the process numbers my sections like this:

1.1.0, 1.1.1, 1.1.2, 2.1.1, etc.

I'd like to remove these completely.

In the advanced PDF instructions, I saw this code. Thought it might turn of section numbering completely:

/* Turn off the default section numbering for this TOC item */
 content: " ";
 counter-reset: chapter 0; 

However, what this seems to do is start the section numbers with a 0, like this: 0.1.1, 0.1.2.

What can I do to hide section numbers, but keep page numbers in the PDF output for a TOC?


3 answers

1 accepted

0 votes
Answer accepted

Just in case you are interested:

There is another answer to the same question at


This did it for me:

    content: target-counter(attr(href), page, decimal );

    page-break-after: always;

div.toc a 
    text-decoration: none;
    color: black;    

  display: none;

    padding-left: 20px;
    counter-reset: section 0;      /* Set section to 0 */

    display: none;

    padding-left: 40px;
    counter-reset: subsection 0;

    display: none;

    padding-left: 60px;
    counter-reset: subsubsection 0;

    display: none;

    padding-left: 80px;
    counter-reset: subsubsubsection 0;

    display: none;

    padding-left: 100px;

My CSS skills are not top touch, you probably could have just removed the div.toclv13:before elements and gotten the same result. Or, if you want to allow for backing this out. Comment out what you don't want and put in just the display: none; with a note.

Hi, thank you for the response. That code works for me. Really appreciate the help!

+1 - Works for me too, using Confluence 5.6.3.

Hi, Your code solved the problem. Thanks for the help!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

177 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you