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

0 votes
Accepted answer

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 votes
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 votes
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
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,027 views 51 8
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