Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Looking for a banner which will stay closed if close is clicked.

Jonathan Smith Community Leader Aug 28, 2018

Currently am trying to give users the ability to close the announcement banner. I have this working until the page is refreshed or if a user navigates to a new page...

Code:
<div class="aui-message closeable">
<p class="title">
<a href="https://xxxxxxxxxxxx/display/~admin/2018/08/28/Confluence+Printing+Update">New printing add-on installed: Scroll PDF Exporter.</a>
</div>

  • The close button (X) appears if I use Custom HTML in Look and Feel.
  • The same code will not display the X in the Announcement Banner.

Does anyone know a way to keep the banner closed when navigating if a person clicks the X?

 

2 answers

Hi @Jonathan Smith

When you says...
"The same code will not display the X in the Announcement Banner."

Did you mean that you have tried the same HTML code on Announcement Banner for Confluence Free App and on there, it doesn't work?

Correct @Alejandro Villalobos _atSistemas_ .

Posting code in the Announcement Banner for Confluence will not display a close button.

Posting code in global HTML displays the closed button, but if you navigate off the page, the banner (from code) reappears. 

1 vote
Dominic Lagger Community Leader Feb 26, 2020

Hi @Jonathan Smith 

Did you figure out how to do that?
I would like to achieve the same thing, and if possible without expensive plugins.

Regards, Dominic

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,559 views 6 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you