Archived topic
WooCommerce demp-store-notice
5 replies · Started by MaksymPS on May 5, 2016
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 :)
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?
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 :)
Make sure "Execute PHP" is checked - the is_woocommerce() part should make it only appear on woocommerce pages.
Wow, is that a magic :D
It works for me perfectly, thanks a lot Tom!
Good luck ;)
You're welcome :)
