How to keep a closed div from reappearing after page refresh?

Hey guys,

We have added a message on the cart drawer with a “X” close button.

It works perfectly but if a customer either refreshes their browser or goes onto a new page, the message reappears in the cart drawer and it needs to be closed again by them.

How can we get it so that after it’s closed, it either never displays again or it won’t show for “n” amount of days etc.?

The code is below attached below. :slightly_smiling_face:

All support is greatly appreciated!

Many thanks,

George


  

  
  [PICK AND MIX](https://proteinpackage.co.uk/collections/frontpage
) 10+ INDIVIDUAL PRODUCTS WHICH HAVE THE {% render 'flair-product-badges', product: item.product, flair_layout: 'Cart Inline' %} TAG FOR UP TO 15% OFF. [FULL BOXES](https://proteinpackage.co.uk/collections/boxes
) ARE ALREADY DISCOUNTED.
  

  

.pick-and-mix-cart #close {
    float:right;
    display:inline-block;
    padding:0px;
}

@George_Greenhil
Hello,

Can You Please Share Your Store URL…
I Will check and provide proper solution

Hey @oscprofessional

Please kindly see the test theme preview link below. :slightly_smiling_face:

https://yl29gv6pjaodlvhj-22594233.shopifypreview.com

Hey @oscprofessional

here’s a new one as the one above I think has nowexpired :slightly_smiling_face:

https://d0stn3wkz95zwxky-22594233.shopifypreview.com

@George_Greenhil
Hello,
I have Checked your site
we have add product in add to cart but its not show and they have no any option available message closing related

check this

Hey @oscprofessional

So sorry, I shared the wrong theme on the second link I sent.

Please try the below link which should 100% work as it should.

https://x374ea24nhsyn28y-22594233.shopifypreview.com/

Many thanks,

George

Hey @oscprofessional

Here’s another correct working link as the other one will have expired due to the 48hr maximum time on Shopify:

https://yvv347xpn3xjgx0b-22594233.shopifypreview.com

Thanks,

George