-
AuthorPosts
-
May 18, 2015 at 6:04 am #275900
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
May 18, 2015 at 6:11 am #275907Hi 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!
May 18, 2015 at 6:42 am #275930I 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!
May 18, 2015 at 7:22 am #275965Hi there,
Please add the following code under Customize -> Custom -> JavaScript :
jQuery(".demo_store").prependTo(".x-main");
Hope it helps.
May 18, 2015 at 8:06 am #276006I 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
May 18, 2015 at 8:57 am #276051Hi 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!
May 18, 2015 at 11:55 am #276159I 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
May 18, 2015 at 1:50 pm #276255You are most welcome 🙂 . If you have any questions or concerns, feel free to post here and we’d be happy to provide further assistance!
-
AuthorPosts