Home › Forums › Support › WooCommerce demp-store-notice This topic has 5 replies, 2 voices, and was last updated 7 years, 11 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts May 5, 2016 at 2:16 am #191879 MaksymPS Hi Tom, Is there any way to put “demo_store” line like in your demo? http://demo.generatepress.com/shop/ I have the next problem: http://piccy.info/view3/9770316/04287bab82a7c764ad3099ba0e656708/orig/ The “store-notice” is fixed and it is located before the menu (even when scrolling the page), so you can’t put on any buttons in menu. Waiting for you reply, Best regards π May 5, 2016 at 10:17 am #192022 TomLead Developer Lead Developer Hi there, I added this in the Before Content hook in GP Hooks: <?php if ( is_woocommerce() ) : ?> <div class="store-notice"> This is a demo store for testing purposes β no orders shall be fulfilled. </div> <?php endif; ?> How are you adding that store notice? May 9, 2016 at 11:22 pm #193130 MaksymPS Hey Tom, Sorry for late relpy. Yeah, it works, thanks! I add to in GP_hooks, but it on every page. http://vetlikar.com/ How to make it only on shop page? I mean: category, product page, shop page. Thanks π May 10, 2016 at 12:11 am #193137 TomLead Developer Lead Developer Make sure “Execute PHP” is checked – the is_woocommerce() part should make it only appear on woocommerce pages. May 10, 2016 at 2:01 am #193171 MaksymPS Wow, is that a magic π It works for me perfectly, thanks a lot Tom! Good luck π May 10, 2016 at 8:13 am #193250 TomLead Developer Lead Developer You’re welcome π Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In