• Resolved Marcelo Pedra

    (@kent-brockman)


    Hello John! I’m having an extra job to do whenever I had to check user panels because when WooCommerce has the Store Notice ON, that message will be pasted using a fixed layer at the very bottom of the page, and using a high z-index, so that it will simply hide your “Switch back to [alias] ([username])” link.

    This may be simply fixed by modifying your CSS class p#user_switching_switch_on from padding-bottom: 1em; to padding-bottom: 3em;

    If you don’t want to apply the above for EVERY scenario, you can check if WooCommerce plugin is installed and active, and if so, use the function is_store_notice_showing to test if there is Store Notice active or not:
    https://docs.woothemes.com/wc-apidocs/function-is_store_notice_showing.html

    Can you fix it?
    Thanks!

    https://wordpress.org/plugins/user-switching/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hi Marcelo,

    This sounds like a problem with WooCommerce. If other plugins also output inline messages in the same way as User Switching does, then they’ll be covered up by the WooCommerce message too.

    John

    Thread Starter Marcelo Pedra

    (@kent-brockman)

    OK, that’s a “won’t fix it for the 2% of you”. All right. msg rcvd 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix the "Switch back" layer when WooCommerce Store Notice is ON’ is closed to new replies.