how can i disable toolbar for all user by woocommerce.
Disable Toolbar for all user
6 posts from 3 voices-
Posted 1 year ago #
-
Hi,
I'm using Flashlight theme and also very interested in:
1) Disabling Toolbar for the woocommerce users.
2) Removing Register link from all woocommerce pages (similar to Kriesi's demo site behaviour)Your help is greatly appreciated.
Posted 1 year ago # -
bump!!
Posted 1 year ago # -
Hey,
1) Add following code to functions.php:
/* Disable the Wordpress Admin Bar for all but admins. */ if (!current_user_can('administrator')): show_admin_bar(false); endif;This will disable the WordPress Admin Bar for all users except administrators.
2) You can create a custom sub menu (Appearance > Menus). This will remove the standard (fallback) WooCommerce menu.
Posted 1 year ago # -
Thanks a lot, Dude!
Your first solution worked perfectly.
With second solution I'm having a styling and alignment problems, really need you help here.1. On ALL PRODUCTS pge my custom menu aligned to the left as oppsed to be centered (see the image)
http://farm8.staticflickr.com/7039/6882248809_0428838d4e_o.png2. On the Product Description page it shifted all content belowto the right (see the image)
http://farm8.staticflickr.com/7046/6882232535_fbd7248b8e_o.png3. After adding product to the cart from the product description page, confirmation message box overlaps with top menu (see the image)
http://farm8.staticflickr.com/7054/6882232841_c1569fc560_b.jpgPlease help! Really need this up and running.
My next purchase is Abundance theme and I suspect it might have similar problems.
Thank you
Posted 1 year ago # -
I found the source of such behaviour, (my previous post) but could not find the sorce code that generates that extra <div> element that messing up the alignment.
If you look at the page source then for the fallback menu only <div class="sub_menu">- ....</div> element is rendered.
When I turn on custom sub menu then an extra div element is inserted as following:
<div class="sub_menu"><div class="menu-shopping-container">- ....</div></div>. Class "menu-shopping-container" is non-existent.
In the run time (Google Chrome) I replaced this class with sub_menu class and this fixed the problem, but I could not override it using Quick CSS.Second problem with custom menu is when user is loged on a Logout link appears next to the Checkout link even though I did not specified it in my custom menu.
I have the custom menu setup as following: My Account | Shopping Cart | CheckoutPlease help me to fix these problems.
I really appreciate your help.
Posted 1 year ago #
Reply
You must log in to post.














