Fix the "Switch back" layer when WooCommerce Store Notice is ON
-
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.htmlCan you fix it?
Thanks!
- The topic ‘Fix the "Switch back" layer when WooCommerce Store Notice is ON’ is closed to new replies.