IMPLEMENTED: Woocommerce notification message appearing behind sticky menu - or under static menu with white background

Hi, newbie here. I’m having trouble with the woocommerce notifications on the product page. When I have a sticky menu the notifications (when products are added to cart for example) seems to appear at the top of the page which is behind my sticky header menu. If I make the header menu into a static one it appears below it - but with a white background behind the notice.

As I understand there is a Woocommerce shortcode [shop_messages] , but when I add that to the shortcode element in the Bricks Builder nothing gets displayed.

Hey Serge,
Can you send me a link to the page? Then I can take a look at the code.

Best regards.
timmse

Hey Timmse, I figured it out. Not sure if this is the best way to do it but I found a setting for the site background in the page settings to remove the white bar behind the notification. It works as long as the header menu is fixed.

Where have you found this settings?

Have the same problem … Thanks.

@timmse is there any possibility to change the position?

Website is Warenkorb | bricks.entwurf.xyz
Thanks

I found the site background setting here:
image

For changing position you might be able to use custom CSS. Not sure if this is best practice but I used this code to change the colors of the woonotices:

/message text and background color/
.woocommerce .woocommerce-message {
color: #313c3e !important;
background-color: #f2f2f2 !important;
}

I had this same issue with the message and my sticky header.


I added position: absolute and z-index: 999 to the alert class. But this just send the message up to the top since it takes the main as reference which is the first relative object it has as parent.

Having the message alert appearing as the first element in the main is annoying.

Any idea how to set this message atleast below the sticky menu without needing to add margin top?

Any news about the problem?

I just found this topic. I posted similar issue recently (Moving woocommerce notice(s), "returning customer?...").

Any workarounds would of course be helpful (except for setting header back to static instead of sticky header).

This is what I did. It just adds margin to the top. Not a perfect workaround, but so far it works for me.

.woocommerce-notices-wrapper:not(:empty) {
  margin-top: 140px;
}```

Hi guys,
We’ve added Theme Style settings for the Woo Notifications in Bricks 1.8.1.

Please take a look at the related academy article:

Best regards,
timmse