How to Hide Confluence Child Pages With jQuery
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
When you create child pages in Confluence, a section is added to the bottom of the parent page listing all of the child pages:
To hide that section, you can use jQuery:
- Log in to Confluence as an administrator.
- Select Browse -> Confluence Admin -> Look and Feel -> Custom HTML.
Insert the following code in the “At end of HEAD” section:
<script> AJS.toInit(function() { AJS.$("#children-section").css("display","none"); }); </script>
- Save your changes. Your page will now look like the following: