How to hide Questions for Confluence elements without disabling the add-on

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs 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

Summary

This guide is for informational purposes and is not eligible for support from Atlassian.  If you have any questions about the information on this page, please reach out to our Atlassian Community for help. 

If you are looking for ways to hide elements of Questions for Confluence without disabling the entire plugin there are a few options to achieve this depending on your goal.

Solution

To hide the Questions link from the navigation bar

We first used the browser's Developer Tools to find the element name for the Questions link and then used our How to hide elements in Confluence using CSS or JavaScript page as a guide to hiding the link. See the steps below:

  1. Go to ⚙ > General Configuration

  2. On the sidebar menu find and click on Stylesheet

  3. On the Global Stylesheet page, please click the Edit button

  4. Insert the code below in the text box:

    1 2 3 #confluence-questions-link { display: none; }
  5. Click Save and leave the Confluence Administration page (The Questions link will still be displayed while in Confluence Administration)

How to hide the Questions for Confluence Ask a question field

If for any reason you'd like to make Questions for Confluence available for reading but removing the ability to ask new questions, you can hide the Ask a question field by using the global stylesheet as well. See the steps below.

  1. Go to ⚙ > General Configuration

  2. On the sidebar menu find and click on Stylesheet

  3. On the Global Stylesheet page, please click the Edit button

  4. Insert the code below in the text box:

    1 2 3 #cq-searchbox { display: none; }
  5. Click Save

Disable modules of the plugin

Understing the plugin modules and what they do can also help you figure out if disabling a module or two will help you achieve your goal. Questions for Confluence has over 220 modules but the ones below are related to the most common actions.

Main menu options

Module

Result

Questions for Confluence Header Item (confluence.restricted.header.item)

If disabled it will hide the Questions link on the top navigation bar

Questions Space Sidebar Link (cq.space.sidebar.link)

If disabled it will remove the sidebar link for Confluence Questions within Spaces

Comments

Module

Result

Comment on a question (cq.question.meta.comment)

If disabled the users won't be able to comment on any question

Comment on an answer (cq.answer.meta.comment)

If disabled the users won't be able to comment on any answer

Edit comment (cq.comment.meta.edit)

If disabled the users won't be able to edit comments

Delete comment (cq.comment.meta.delete)

If disabled the users won't be able to delete comments

Convert to answer (cq.comment.meta.convert-to-answer)

If disabled the users won't be able to convert a comment into an answer

Answers

Module

Result

Accept an answer (cq.answer.meta.accept)

If disabled the users won't be able to accept an answer

Unaccept an answer (cq.answer.meta.unaccept)

If disabled the users won't be able to unaccept an answer

Delete answer (cq.answer.meta.delete)

If disabled the users won't be able to delete an answer

Convert to comment (cq.answer.meta.convert-to-comment)

If disabled the users won't be able to convert answers into comments

vote (vote)

If disabled the users won't be able to vote on answers

Questions

Module

Result

Delete question (cq.question.meta.delete)

If disabled the users won't be able to delete their questions

Edit question (cq.question.meta.edit)

If disabled the users won't be able to edit their questions

query-input (query-input)

If disabled the users won't be able to add new questions

Updated on April 10, 2025

Still need help?

The Atlassian Community is here for you.