Enabling the HTML Macro

The HTML macro is disabled by default. You’ll need Confluence Administrator or System Administrator permissions to enable this macro.

(warning) Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks. You should only turn on these macros if you trust all your users not to attempt to exploit them. We strongly recommend leaving this macro disabled if you allow self-signed up or anonymous users to create content.

To enable the HTML macro:

  1. Go to > Add-ons.
  2. Select System from the drop down and search for the Confluence HTML Macros add-on.
  3. Expand the add-on and enable the html (html-xhtml)  module.

Using the HTML Macro

To add the HTML macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros
  2. Find and select the required macro

For sites using the default theme:

Default Theme
  if (AJS.$("div.ia-fixed-sidebar").width() > 55){

For sites using the documentation theme:

Documentation Theme

More info: https://confluence.atlassian.com/display/CONFKB/How+to+Use+JavaScript+in+Confluence

Posted by:.

3 replies on “How Do I Remove the Side Bar in Confluence 5?

  1. This seems to only work if I go into the space at the parent level. If the user had the side bar opened the last time they were logged in, and then later enters the space through a child page direct link, Confluence seems to keep the side bar open. Is there a way to enforce this through the whole project space, or can it only be enforced if the user enters through the project HOME page within the space?

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s