Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #275900

    meaderweb
    Participant

    I would like to put a shop wide notice on site. I found the setting on the woocommerce plugin, but checking this option and creating the relevant text doesn’t seem to make it through to the page template.
    http://176.32.230.7/eagletest.com/wp2/shop/

    Any ideas as to what is going on?

    Regards, Tony

    #275907

    Zeshan
    Member

    Hi Tony,

    Thanks for writing in!

    Upon checking, the “Demo Store” notice is showing at the bottom of your website (see: http://prntscr.com/76jrd3). Would you mind confirming again? As per WooCommerce Settings, you can style the message using following CSS code:

    p.demo_store {
       /* Your Styling Goes Here */
    } 
    

    Thanks!

    #275930

    meaderweb
    Participant

    I hadn’t noticed it down there. I need it up top before the products – is the store notice part of the footer?

    I am reasonable with CSS, however, I can’t think how to float it up to the top!

    #275965

    Christopher
    Moderator

    Hi there,

    Please add the following code under Customize -> Custom -> JavaScript :

    jQuery(".demo_store").prependTo(".x-main");

    Hope it helps.

    #276006

    meaderweb
    Participant

    I have tried that and yes it did work. however, every page now has my “stock” message on top. By manipulating “.demo_store” I thought we would be more selective. I only want the shop message on the main page of the shop really.

    Tony

    #276051

    Zeshan
    Member

    Hi Tony,

    This is the default behaviour of WooCommerce that it applies the message site wide. But if you wish to hide the message on pages outside the WooCommerce, you can use following CSS code:

    body:not(.woocommerce) .demo_store {
       display: none !important;
    }
    

    Thanks!

    #276159

    meaderweb
    Participant

    I have found an easier solution. I thought the shop page was created dynamically, hence this post. But I am using my own custom page as the “shop” page and I guess the php injects the product info into my “shop” page? So I have just added some content to my “shop” page and all is OK.

    Many thanks

    Just have to day that the support you guys provide is top drawer

    #276255

    Prasant Rai
    Moderator

    You are most welcome 🙂 . If you have any questions or concerns, feel free to post here and we’d be happy to provide further assistance!