Hello together,
How can I hide the entry "Collections" in Confluence for example via CSS (JavaScript, etc.)?
Can someone give me a code for it?
Thank you in advance.
Kind Regards,
Lara
@Lara Weber you will need to use Javascript to hide elements in Confluence Server/DC.
You will need to go to Confluence Administration > Custom HTML and add the following code in the header:
<script type="text/javascript">
AJS.toInit(function(){
AJS.$('#<id-of-collection>').hide();
});
</script>
Make sure to replace <id-of-collection> with the ID of the Collections element.
To find the ID of any element you may refer to Find an HTML ID or Name
Hi @Sayed Bares _ServiceRocket_ ,
As you can see in the screenshot there is no ID for the button "Collections".
Instead of the code you posted, therefore I tried the follwing. With this code the button is hidden.
<script>$(document).ready(function(){
$("a[href='/snapshots/collections/viewer/global.action']").parent().hide()});
</script>
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.