Remove an item from the Add Page menu

Hello all I'd like to remove the "Add Page" menu item from the Add Page menu so that it forces people to use the template. I think this may be possible based on this article but I could be wrong Is it possible to remove an item altogether? Thanks in advance Brian

5 answers

1 accepted

I couldn't get the AJS scripts to work to fix this issue. In the end, I used JavaScript to remove the entry with the following

document.getElementById('add-page-item').style.display= "none";

This works in Conf 4.2:

AJS.$('#add-menu-link-space li:first').remove();

Add it to your "Custom HTML".
Peter Koczan Atlassian Team Jun 25, 2013

Just one thing to add: put it between

<script type="text/javascript">



This didn't seem to work unfortunately. I'm using version 4.2.4 version of Confluence and added the script tags. Do I need to enable JavaScript somewhere?

The easiest way to do this would be to just add a little jQuery that removes the first item in the drop down list. I've used jQuery before to customize my menus like that and it works great.

0 vote
Peter Koczan Atlassian Team Jun 25, 2013

Hi Brian,

Can you let me know the Confluence version you are using?



Hi Peter

I'm using 4.2.4 and unfortunately the script didn't work (even with the script tags)

Any ideas? Do these scripts need to be enabled somehow?

0 vote
David Simpson Community Champion Jul 01, 2013

@Brian Bricham: Matthew's answer was almost right, but really it the JS needs wrapping in an AJS.toInit method...

In Confluence Admin | Look & Feel | Custom HTML paste this into At the End of the BODY:

    AJS.$('#add-menu-link-space li:first').remove();

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 Friday 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...

255 views 11 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