[Resolved] WooCommerce demp-store-notice

Home Forums Support [Resolved] WooCommerce demp-store-notice

Home Forums Support WooCommerce demp-store-notice

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 πŸ™‚

    #192022
    Tom
    Lead 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?

    #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 πŸ™‚

    #193137
    Tom
    Lead Developer
    Lead Developer

    Make sure “Execute PHP” is checked – the is_woocommerce() part should make it only appear on woocommerce pages.

    #193171
    MaksymPS

    Wow, is that a magic πŸ˜€
    It works for me perfectly, thanks a lot Tom!

    Good luck πŸ˜‰

    #193250
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.